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

Forums / General Discussions / Excluding Header information from site search results

Excluding Header information from site search results

5 posts, 0 answered
  1. michael
    michael avatar
    2 posts
    Registered:
    23 Sep 2014
    23 Sep 2014
    Link to this post

    Hello community,

      We're currently running 6.2  and have been having an over-indexing problem on search results returns.  It seems that the site search is including header data in the crawl and returning a overly robust result to the point where it becomes not useful.  Has anyone had similar problems and/or can anyone recommend a method to exclude  certain types of content at the page level.  Please advise.  

    Regards,

    Michael


  2. Aaron
    Aaron avatar
    9 posts
    Registered:
    25 Aug 2014
    22 Oct 2014 in reply to michael
    Link to this post
    We also would like to see an answer to this. Currently we are running 7.1
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Oct 2014 in reply to michael
    Link to this post

    It has no idea what your template content is, you just need to hide it in your widgets or codebehind (wherever appropriate)

     Example:

    if (this.GetIndexRenderMode() != Telerik.Sitefinity.Web.UI.IndexRenderModes.Normal){
                    mainMenuWidget.Visible = false;
                    mainToolbarWidget.Visible = false;
                }

     

  4. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    Registered:
    21 Jan 2015
    27 Oct 2014
    Link to this post
    Hello,

    As Steve mentioned, the search index would normally index the whole static content on the page. If you would like to exclude a part of that page you can do it by creating a custom layout control on which you will place the content you would like to hide from the index. We have a blog post describing this process in details.

    I hope this helps and please let me know if you have any additional questions.
    Regards,

    Regards,
    Vassil Vassilev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    27 Oct 2014 in reply to Vassil Vassilev
    Link to this post

    I'm partial to hiding widgets themselves...using layouts works on a per page basis...or per page template.  So if a user uses your X\Y widget on a page and doesn't wrap it in the layout, it's being indexed again.

     Where coded to the widget it's 100% sitewide...could even add a property to the widget to allow it to be indexed on a per-widget basis.

5 posts, 0 answered