Try Now
More in this section

Forums / Developing with Sitefinity / Problem Updating Custom Search Index

Problem Updating Custom Search Index

3 posts, 0 answered
  1. Brian
    Brian avatar
    31 posts
    25 Jun 2009
    22 Feb 2011
    Link to this post
    I've written an interface in the admin section of Sitefinity for our client to be able to enter information about different companies in their City (Address, Description, etc.). 

    I used this article http://www.sitefinitywatch.com/notes/09-06-24/Working_with_Sitefinity_Search.aspx to develop a custom search index & everything is working perfect.

    The problem I'm running into is from the article above, I can't wrap my head around how to add, update & delete locations from my custom search index without reindexing the entire index.  This post http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/custom-search-index-is-not-updating.aspx helped me run the entire index & this post http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/contentindexprovider-for-a-custom-content-module.aspx talks about partial updates to the index. 

    I'm just not sure how to get partial index updates working with Gabe's example off SitefinityWatch.com.

    Any help would be greatly appreciated!

  2. Brian
    Brian avatar
    31 posts
    25 Jun 2009
    23 Feb 2011
    Link to this post
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    28 Feb 2011
    Link to this post
    Hello Brian,

    When you call the index method of the IndexingService you can pass a parameter which tells the service whether the index should be reindexed or changes should be appended to the index. Bellow is the implementation of this method:
    /// <summary>
    /// Crates an index for all pages and documents provided by all registered clients
    /// </summary>
    public void Index(bool appendToIndex)
        IndexingManager.StartIndexing(this, appendToIndex);

    If you wish only to append changes to the index you should use call the Index method passing true as the parameter value.

    Radoslav Georgiev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Register for webinar
3 posts, 0 answered