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

Forums / General Discussions / Exclude a content from the search index in Sitefinity 4.0

Exclude a content from the search index in Sitefinity 4.0

6 posts, 0 answered
  1. Viktoriya
    Viktoriya avatar
    20 posts
    Registered:
    29 Jul 2010
    10 Jun 2011
    Link to this post
    Hello everyone, 

    We have a project built in Sitefinity 4.0. We have added a module which displayes information in the backend of the CMS. 

    When we try to index the site during indexing the CMS is throwing and error because of this module. 

    Is there a way for us to exclude it from the search? 

    Could you please help us?

    Thanks!

    Viktoriya

    FYI: This is how the error looks like:
    Type : Telerik.OpenAccess.Exceptions.ConfigurationException, Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
    Message : Cannot find section 'backendconfiguration' with id 'mssqlConfiguration'.
    See History property for more details.
    Source : Unity_ILEmit_DynamicClasses
    ErrorOccurred : ConfigSectionNotFound
    History : Resolving connection with id='BootstrapConnection'
    Config file=(Database.Get parameter)
    Check <openaccess> node
    Found connection node with id='BootstrapConnection'
    Connection node is not empty
    Found backendconfigurationname='mssqlConfiguration'
    Resolving backendconfiguration id='mssqlConfiguration'
    Checking assembly Petition, Version=2.1.4178.21346, Culture=neutral, PublicKeyToken=null
    Backend configuration not resolvable.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Jun 2011
    Link to this post
    Hello Viktoriya,

    I suppose that you have a module and control for it that is on a page,  because otherwise  you should have a custom index. You might get error form the crawler when you have a control on a page where

    - You have RadScripManager in a custom template
    - You have RadStyleSheetManager in a custom template
    - You have custom controls that uses page objects and SiteMap
    - You use a session objects
    - You do not check for null exception and when the crawler makes a request there is a null error.

    The solution require to escape these places with the code below

    if (this.Page.Items["IsInIndexMode"] == null)
    {
     // your logic here.
    }



    Best wishes,
    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
  3. Viktoriya
    Viktoriya avatar
    20 posts
    Registered:
    29 Jul 2010
    10 Jun 2011
    Link to this post
    Hello Ivan, 

    Thank's for replying so fast! We followed all items from your list. We added your script and our code seems to be compliant. 

    When we try to index we get the attached error.

    Kind regards,
    Viktoriya
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Jun 2011
    Link to this post
    Hi Viktoriya,

    The only other reason for this error might be some static controls or html elements in your master page or nested pages with the same IDs.

    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
  5. Viktoriya
    Viktoriya avatar
    20 posts
    Registered:
    29 Jul 2010
    15 Jun 2011
    Link to this post
    Hi Ivan, 

    To follow up with this thread...It turned out that there were more than one problem with our search index... and different errors deriving from them.

    Before listing them I need to specify that the project is built on Sitefinity 4.0 as we had a lot of problems when trying to upgrade to 4.1.

    So we discovered that:

    1. If we wanted to include news items in the search index we must type in the title of the news items if there are special characters in it i.e. apostrophes, dashes etc.

    2. The news items summary has a limit of 255 characters. If we typed more than that the indexing didn't work and threw return code=0.

    May you guys should have the limit in brackets. For example (255 characters max) or similar...

    3. When we tried to use news archive in a page the search indexing didn't work. No solution was found so we decided not to use it. Not ideal.

    Maybe some / all of these issues have been addressed in 4.1 and I will sigh with relief when I try it. For now however I thought it would be useful to list them...

    Kind regards,
    Viktoriya
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Jun 2011
    Link to this post
    Hello Viktoriya,

    Thanks for you feedback. We will verify the issues you reported and see how to sort them for Q2 release.

    Best wishes,
    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
6 posts, 0 answered