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

Forums / Developing with Sitefinity / Search and templates

Search and templates

3 posts, 1 answered
  1. Kostadinka
    Kostadinka avatar
    16 posts
    Registered:
    27 Jul 2010
    10 Aug 2010
    Link to this post
    Hi :)

    I made an user control news rotator as described here 

    After that I put the control in the template page because I wanted to view the news on right bar of every page.

    I defined a Search index for news and pages.

    Now, when I try to search for a text, which is contained in news, the search results are:
    1. the news which contain the phrase
    2. all the pages

    This happens when the phrase is displayed by my control.

    Any suggestions?

    ... and thanks in advance

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Aug 2010
    Link to this post
    Hello Kostadinka,

    The Page index gets HTML of each page added to the index, News index gets content data - metakeys and content for all news objects. In this scenario, when you perform a search it is normal to see the content from pages, because RadRotator adds all items on PageLoad and it does not use virtualization or hierarchical databinding. You can try to exclude the RadRotator from your index as described in this KB How to customize the indexing of html documents

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Kostadinka
    Kostadinka avatar
    16 posts
    Registered:
    27 Jul 2010
    11 Aug 2010
    Link to this post
    Thank you :) That works.
Register for webinar
3 posts, 1 answered