More in this section

Forums / Developing with Sitefinity / Getting search to ignore widgets or controls

Getting search to ignore widgets or controls

2 posts, 1 answered
  1. Charles
    Charles avatar
    61 posts
    Registered:
    18 Jul 2012
    15 Oct 2012
    Link to this post
    We have a search tool that is nice, but what we find is that the search captures the entire page. Ie, if someone were to look for product A, but the menu has product A, B, C, the search returns the first items for product A, but also include product B and C in the results.
    I'd like it so the actual 'content' of the page is what's search rather then include the template elements and menus. Would make a cleaner results.
    Thanks in advance
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    15 Oct 2012
    Link to this post
    I hide our menu from being indexed like this (in the code behind of the control)

    //Hide menu from the indexing
                this.Visible = this.GetIndexRenderMode() == Telerik.Sitefinity.Web.UI.IndexRenderModes.Normal;
    Answered
2 posts, 1 answered