More in this section

Forums / General Discussions / Controlling what Content Blocks are searchable

Controlling what Content Blocks are searchable

4 posts, 0 answered
  1. Jeffrey
    Jeffrey avatar
    17 posts
    11 Nov 2010
    08 Mar 2011
    Link to this post

    I'm wondering if there is a way to control which content blocks on a page are indexed in a search. For editing purposes, I have much of my navigation set up in Content Blocks on my site, but I want to avoid having the navigation text kick a certain page back as a search result.


    Jeffrey Paul
  2. Teodor
    Teodor avatar
    52 posts
    24 Sep 2012
    09 Mar 2011
    Link to this post
    Hello Jeffrey,

    I believe you could create a Custom PagePipe and replace the existing one , in which you could exclude some of the rendered content of the page.

    Inherit PagePipe , override the logic in ConvertImportedItemForMapping.
    Attach to the event : Bootstrapper.Initialized;

    Then use PipeFactory.UnregisterPipe("PagePipe");

    Then use PipeFicatory.RegisterPipe("PagePipe",typeof(YourCustomPagePipe));

    the Telerik team
  3. Laura
    Laura avatar
    311 posts
    25 Feb 2008
    31 Mar 2011
    Link to this post
    So in versions previous to 4.0, if you wanted to exclude say  your footer content, you alter the setings in the xml file here: /App_Data/Search/myIndex/fieldsInfoProvider.xml
    as in this article:

    How do we do that in 4.0 now?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    31 Mar 2011
    Link to this post
    Hello Laura,

    There is no configuration that you can use for now and the only option is custom pipe as Teodor suggested. We are going to extend the search functionality after Q2.

    All the best,
    Ivan Dimitrov
    the Telerik team
4 posts, 0 answered