Try Now
More in this section

Forums / Developing with Sitefinity / How to make the indexer update a entry instead of duplicate?

How to make the indexer update a entry instead of duplicate?

2 posts, 0 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    16 Apr 2010
    30 Aug 2010
    Link to this post
    The problem is that the indexer keeps the old and adds the new.

    So if I create a News with the title: "Hello World" it will index.
    If I update the title to "Hello Telerik" it will add to the index instead of update.
    If I search for "Hello" I will get "Hello World" (which doesn't exists anymore) and "Hello Telerik".

    How does the indexer works? What should I do to get it to update instead of insert?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    30 Aug 2010
    Link to this post
    Hi Bruno Michels,

    By default we append the changed item to the IIndexerInfo list. The version of a given item is not removed until you run the entire index from Sitefinity >> Administration >> Search or do it programmatically. If we update the entire index on each update this will cause some performance issues ( you can see the indexing execution time when you run in from Sitefinity >> Administration >> Search - it could take 1 minute if you have over 5000 items)

    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
2 posts, 0 answered