Getting search to ignore widgets or controls

Posted by Community Admin on 04-Aug-2018 12:47

Getting search to ignore widgets or controls

All Replies

Posted by Community Admin on 15-Oct-2012 00:00

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

Posted by Community Admin on 15-Oct-2012 00:00

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;

This thread is closed