Skip to end of metadata
Go to start of metadata
Contents Summary
 The code in below examples uses some methods defined in Common Utilities.

This feature is supported by version 18.5 or greater.

Specifying Number of Searching Threads 

GroupDocs.Search API allows you to specify the number of searching threads. Enum NumberOfThreads has been added to GroupDocs.Search namespace, it contains the following values:

  • Default
  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight 

The Recipe

To specify the number of searching threads, following steps are needed to be followed:

  • Initialize IndexingSettings
  • Set IndexingSettings.SearchingThreads = NumberOfThreads.One
  • Initialize Index, by passing index folder path and IndexSettings 
  • Get search results using Index.Search("query")

The Code

  • No labels