Skip to end of metadata
Go to start of metadata
Contents Summary
 

The code in below examples uses some methods defined in Common Utilities

Update Index

The Recipe

The index can be updated by following the given steps:

  • Load Index
  • Update Index

The Code

Update Index in Repository

The Recipe

  • Declare repository object of IndexRepository
  • Add repository
  • Update repository

The Code

Update Index Asynchronously

The Recipe

  • Load Index
  • Invoke index_OperationFinished
  • Update index asynchronously

The Code

Update Indices in Repository Asynchronously

The Recipe

  • Declare repository object of IndexRepository object
  • Invoke index_OperationFinished
  • Add index folders to repository
  • Update all indices in repository asynchronously

The Code

Support All Methods in Previous Index Versions

This feature is supported by version 17.3 or greater

GroupDocs.Search allows using some features in the old versions of the index by the new simplified procedure of updating any old index to the new version of it.
Only search functionality is supported for old index version. Merging and adding new documents to the index is not supported.

The Recipe

To update index up to actual version, you can use any one of the below mentioned ways:

  • Run index.Update() method
  • Run any of AddToIndex or Merge methods with true in updateIfNecessary parameter

The Code 

Labels
  • No labels