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

Forums / Developing with Sitefinity / Search Indexing Dynamic Content Pages

Search Indexing Dynamic Content Pages

2 posts, 0 answered
  1. Jasdeep
    Jasdeep avatar
    1 posts
    Registered:
    18 Mar 2009
    22 Apr 2009
    Link to this post
    I have Dynamically Generated pages that displays different content based on the Querystring parameters.

    How do I get Sitefinity to Index all these pages for searching, there are probably 50,000 or so possible pages of content based on the Querystring. The search would have to remember the url of course...

    Any help/guidance would be appreciated.


  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    24 Apr 2009
    Link to this post
    Hi Jasdeep,

    The Sitefinity PageIndex is working with the Sitemap. The indexer is spidering through each page in our Sitemap. There are two possible solutions:
    1. Somehow include all of your page variations (one page, showing different things based on the querystring) as static external pages in the sitemap.
    2. Create a new PageIndex provider, and provide it with the list of the pages that it should index. This could be an automated process (I mean the list generation).
    3. Override the default PageIndexerProvider and use it instead of creating a new one:

    App_Code\CustomPageIndexer.cs
    using Telerik.Cms.Search; 
    using Telerik.Framework.Search; 
     
    /// <summary> 
    /// Summary description for CustomPageIndexer 
    /// </summary> 
    public class CustomPageIndexer : PageIndexProvider, IIndexingServiceClient 
        public CustomPageIndexer() 
        { 
            // 
            // TODO: Add constructor logic here 
            // 
        } 
        #region IIndexingServiceClient Members 
     
         
        string[] IIndexingServiceClient.GetUrlsToIndex() 
        { 
            //List of URLs 
            //You can genera 
            string[] ListOfUrls = {""}; 
            return ListOfUrls; 
             
        } 
        #endregion 

    Register the indexer in the web.config file:
    <indexClients> 
     <add name="DynamicPageIndex" type="CustomPageIndexer, App_Code" settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" description="Provides indexing services for CMS Pages." /> 
    </indexClients> 

    Note that with the last approach, your dynamic urls will be always indexed, no matter which nodes you specify. We always return the list for indexing.

    Hope this helps.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered