More in this section

Forums / Bugs & Issues / Search Indexes TOO Much

Search Indexes TOO Much

63 posts, 0 answered
  1. Zubair
    Zubair avatar
    142 posts
    26 Dec 2007
    20 Apr 2010
    Link to this post
    Hi Georgi,

    Older thread I know, but I'm experiencing this problem with search indexing too much, here's the thing.

    We have a few overlay popup pages that we want not indexed.

    Here's how I'm doing it in the fieldInfoProvider.xml file

    <?xml version="1.0" encoding="utf-8"?>
      <field name="content" weight="4" indexAttribute="id:content;" filterTag="div" filterAttributes="" />
      <field name="overlay" weight="-1" indexAttribute="" filterTag="div" filterAttributes="class:scroll-pane;" />
      <field name="title" weight="1" indexAttribute="" filterTag="title" filterAttributes="" />
      <field name="keywords" weight="2" indexAttribute="content" filterTag="meta" filterAttributes="name:keywords;" />
      <field name="description" weight="3" indexAttribute="content" filterTag="meta" filterAttributes="name:description;" />
      <field name="script" weight="-1" indexAttribute="" filterTag="script" filterAttributes="" />
      <field name="style" weight="-1" indexAttribute="" filterTag="style" filterAttributes="" />

    Notice the name="overlay" it contains a <div class="scroll-pane">...content..</div> in the page, I want everything within that <div> not indexed, how can I do it?

    Also specifying like this means everything within the specific tag(s) is not indexed in search? correct me if I'm wrong.

    I'm hoping you'll get back to me as soon as you can.

    Thanks in anticipation.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    20 Apr 2010
    Link to this post
    Hello Zubair,

    If you have div like this one shown below

    <div class="scroll-pane">

    and the following filed settings

    <field name="overlay"  weight="-1"  indexAttribute=""  filterTag="div"  filterAttributes="class:scroll-pane;"  />

    the text "IVAN" should not be indexed. Note that after you have added the new field name to the xml file the application should be restarted and the index should be run again. Then the Lucene segments file will be updated and SearchResults will return the correct results.

    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.
  3. Zubair
    Zubair avatar
    142 posts
    26 Dec 2007
    20 Apr 2010
    Link to this post
    Thanks for the quick reply, yes this is how the markup is, I wasnt restarting the app but just reindexed and it didnt work, I'll try restarting the app.
Register for webinar
63 posts, 0 answered
1 2 3