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

Forums / Developing with Sitefinity / Search index doesn't contain content for all pages.

Search index doesn't contain content for all pages.

8 posts, 0 answered
  1. Nathan
    Nathan avatar
    7 posts
    Registered:
    16 Dec 2009
    11 Feb 2010
    Link to this post
    I've created a search index with an all pages starting node, but it only seems to be getting content from the pages directly off the root, in the page group that contains the page that has the search bar control, and the page group that contains the page that contains the search results control.  Using Lucene Luke, I was able to see that all of the pages in the other page groups are contained in the index, but none of their content is.

    Is there something I'm missing here?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Feb 2010
    Link to this post
    Hi Nathan Lomax,

    1. Check whether there are any errors thrown in sitefinity.log file.

    2. It is possible that you have some control or code in the problematic pages that prevents the index from giving you proper results. You can prepare a simple test pages that does not have any js and custom logic on them. You can use GenericContent control with some simple text for your test.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Nathan
    Nathan avatar
    7 posts
    Registered:
    16 Dec 2009
    11 Feb 2010
    Link to this post
    Ah.  I did, indeed, have a couple of custom controls that were trying to use session state in the page load which was preventing them from being indexed properly.

    Thanks so much for your help.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Feb 2010
    Link to this post
    Hello Nathan,

    Always glad to help.

    Best wishes,
    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. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    08 Nov 2011
    Link to this post
    Hi,
    I know this is an old thread but I am having the same issue, and I cannot find what could possibly be causing this to happen.  What sort of things can cause a page to not index properly?  I don't have anything that is using the session state, other than a small widget that shows the name of the logged in user, and it just queries Page.User.Identity.IsAuthenticated.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Nov 2011
    Link to this post
    Hello Keith,

    The problem  is  in Page.User.Identity.IsAuthenticated. Try using user.Identity.IsAuthenticated from the current HttpContext

    context.User.Identity.IsAuthenticated


    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Keith
    Keith avatar
    67 posts
    Registered:
    13 Sep 2010
    10 Nov 2011
    Link to this post
    Hi Ivan,
    Thank you for your response.
    I changed my control code accordingly, but unfortunately after I performed a re-index, it is still not indexing everything.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Nov 2011
    Link to this post
    Hi Keith,

    Then you can add your code in the following block

    if (!CmsContext.IsRequestCrawler(this.Context))
    {
     // your code
    }

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered