Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 19, 2012 @ 21:08
    Fuji Kusaka
    0

    Seems like nothing is being Index

    Hi everyone,

    Has anyone used Examine as their search on their website under v4.9.0 ? 

    After setting up the ExaminIndex.config and ExmaineSettings.config, the folder was well added under the Temp folder. But now when using Luke to is the indexing of contents, it happens that am not getting any Results.

    So my question will be how to i get the indexes working ? I have already republished the whole webiste and still getting only NO Results from Luceme.

     

    any suggestion please?

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 20, 2012 @ 15:08
    Fuji Kusaka
    0

    Finally got this working seems like i miss the Naming Convention in the ExamineIndex.config. 

    After using Luke i got all the results and indexes working. Now second part is to get the search results to display.

    Thanks to the very handy post from Peter here.

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 21, 2012 @ 12:08
    Fuji Kusaka
    0

    Now that i got everything working and getting my media items in the search results i bumped into another issue when it comes to get the url of the node.

    Here is the situation, i have a list of Media files with NodeTypeAlias  == " Documents", to display those i have a media Picker. So everytime the admin creates a new category in the Content Section and Pick a folder from Media Section to display those Documents. 

    With my search i can look for a specific documents but now i want to make it possible for the User to get the Url of the Category under which the document is listed.

    I tried something like this but can get the URL to work

    if(@result.Fields["nodeTypeAlias"] == "Documents"){
                 <li><a href="@umbraco.library.NiceUrl(result.parentId.Id)">@result.Fields["nodeTypeAlias"] @result.Fields["nodeName"]</a></li>
     }

    any suggestion on this please ? 

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 21, 2012 @ 22:06
    Fuji Kusaka
    0

    Anyone have any idea on how i can make this ??

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 23, 2012 @ 05:53
    Fuji Kusaka
    0

    Finally got the URL of media to work. This didnt work for me under v 4.9.0. Here is how i proceeded if someone has the same issue one day.

    @result.Fields["umbracoFile"] 

    so instead i did something like using the DynamicMedia

    if(@result.Fields["nodeTypeAlias"] == "File"){              
     dynamic mediaItem = new DynamicMedia(result.Id); 
                               <li>
                    <a href="@mediaItem.umbracoFile" title='@result.Fields["metaFileDescription"]' target="_blank"> Downalod the file @result.Fields["nodeName"]  </a>
                  </li>
               }
Please Sign in or register to post replies

Write your reply to:

Draft