Copied to clipboard

Flag this post as spam?

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


  • Web Project 27 posts 177 karma points
    Jun 16, 2020 @ 16:59
    Web Project
    0

    Hi all, I would like to implement search in frontend site.

    I configured follow this guide ti configure Exime: https://our.umbraco.com/Documentation/Reference/Searching/Examine/Quick-Start/index-v7

    and i created search.cshtml

    var searchQuery = Request.QueryString["query"];
    
    if (!string.IsNullOrEmpty(searchQuery))    
    {
                @foreach (var result in Umbraco.Search(searchQuery))
                {                    
                        <a href="@result.Url">@result.Name</a>
    
                }            
     }
    

    But search is always empty.

    Thank you all

    Giampiero

  • Web Project 27 posts 177 karma points
    Jun 18, 2020 @ 08:53
    Web Project
    0

    I fixed this by removing the old files from the index at:

    ~/App_Data/TEMP/ExamineIndexes/External/Index/

    ~/App_Data/TEMP/ExamineIndexes/Internal/Index/

    ~/App_Data/TEMP/ExamineIndexes/InternalMember/Index/

    Thank you all

    Giampiero

Please Sign in or register to post replies

Write your reply to:

Draft