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

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

Getting Indexing Report

This feature is supported by version 17.7.0 or greater.

GroupDocs.Search for .NET allows making a report with detailed information about indexing. IndexingReport[] GetIndexingReport() method added to GroupDocs.Search.Index class has been used to get indexing report using the search API.

The Recipe

To get detailed information about indexing using GroupDocs.Search API, the following steps are needed to be followed:

  • Create index
  • Get index report using Index.GetIndexingReport() method and save this information to IndexingReport[]
  • Loop through the IndexingReport array and display the information

The Code

Limiting Indexing Report

This feature is supported by version 17.8.0 or greater.

GroupDocs.Search for .NET allows setting the maximum count of indexing report. This value means how many last reports are stored. A default value of the maximum indexing report count is 5 but you can change it as per your requirements.
An integer property MaxIndexingReportCount has been added to GroupDocs.Search.IndexingSettings class to achieve this functionality

The Recipe

To limit the information about indexing using GroupDocs.Search API, the following steps are needed to be followed:

  • Create index
  • Set the maximum count of indexing reports to your desired value
  • Add as many documents to index as you want
  • Get indexing report. The results will only contain information about indexing of the number of records defined in MaxIndexingReportCount

The Code

Labels
  • No labels