+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Search indexing but not displaying any results

Search indexing but not displaying any results

5 posts, 0 answered
  1. Ana
    Ana avatar
    8 posts
    Registered:
    24 Aug 2010
    27 Sep 2010
    Link to this post
    Hi there,

    I created search index that uses pageIndex source and  indexing all pages and words.
    Problem is that it doesn't return any result if I am trying to search anything in search control. I always see message "Found 0 pages".

    Can't figure out what might cause this problem.

    Thank you for your help,
    Ana




  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Sep 2010
    Link to this post
    Hello Ana,

    The reasons for not getting  results from the index could be

    1. Some control inside your pages / master page
    2. Index is not set and your pages do not get indexed- Index this page is false.
    3. You have modified fieldsInfoProvider.xml in a way that data is not added to Lucene segment files.
    4. Somewhere you are using Session or calling methods like FormsAuthentication.SigntOut().

    You could check the error log in App_Data to see if there are any related errors.

    You could try creating a new master page without any controls on it. Then create a page and drop GenericContent control on it and type some text in its content area. Run the index and perform search using newly created index. For instance you can type something simple like "melon" and see whether the search result will return ant item when you perform a search.

    PageIndexProvider gets the entire HTML of the page by processing a web request and most probably something at your end blocks this request.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Ana
    Ana avatar
    8 posts
    Registered:
    24 Aug 2010
    27 Sep 2010
    Link to this post
    We are using the session state in a few places and also have a reference in one spot to a forms authentication sign out.  Removing those made the index run properly and give us results.

    Is there a way to make the session state work happily with the search index?  

    Thanks,
    Ana
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Sep 2010
    Link to this post
    Hello Ana,

    You can check whether the current request is crawler request and then do not execute your session logic. This will not affect the control and its normal behavior

    if (!CmsContext.IsRequestCrawler(this.Context))
     {
      
      
     }


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Ana
    Ana avatar
    8 posts
    Registered:
    24 Aug 2010
    27 Sep 2010
    Link to this post
    thank you! it worked.
Register for webinar
5 posts, 0 answered