Search options

This page contains a description of all search options that can be specified in an instance of the SearchOptions class.

setCancellation method

The setCancellation method allows you to specify the object to cancel the search operation. The search can be canceled without delay by calling the Cancel method or by calling the CancelAfter method with the delay in milliseconds as an argument.

getDateFormats method

The getDateFormats method returns a collection of date formats that allows you to specify formats for the date range search feature. For details, see the Date range search page.

getFuzzySearch method

The getFuzzySearch method returns a fuzzy search options object that allows you to enable fuzzy search and set its options. By default, the fuzzy search feature is disabled. For details, see the Fuzzy search page.

setChunkSearch method

The setChunkSearch method allows you to enable search by chunks. By default, the search by chunks feature is disabled. For details, see the Search by chunks page.

getKeyboardLayoutCorrector method

The getKeyboardLayoutCorrector method returns a keyboard layout corrector options object, which allows you to enable keyboard layout correction in search queries. By default, the keyboard layout correction feature is disabled. See the Keyboard layout correction page for details.

setMaxOccurrenceCountPerTerm method

The setMaxOccurrenceCountPerTerm method allows you to specify the maximum number of occurrences of each word found that will be returned as a search result. The default value is 100000.

setMaxTotalOccurrenceCount method

The setMaxTotalOccurrenceCount method allows you to specify the maximum number of occurrences in total for all found words, which will be returned as a search result. The default value is 500000.

setSearchDocumentFilter method

The setSearchDocumentFilter method allows you to specify the filter of documents returned as a search result. By default, all documents found will be returned as a search result. For details, see the Document filtering in search result page.

getSpellingCorrector method

The getSpellingCorrector method returns the spelling corrector options object, which allows you to enable spelling correction in search queries and specify spelling correction options. By default, spelling correction is disabled. See the Spell checking page for details.

setUseCaseSensitiveSearch method

The setUseCaseSensitiveSearch method allows you to perform case-sensitive search. Please note that case-sensitive search is not compatible with other types of searches. By default, case-insensitive search is performed. For details, see the Case sensitive search page.

setUseHomophoneSearch method

The setUseHomophoneSearch method allows you to enable homophone search feature. By default, the homophone search feature is disabled. For details, see the Homophone search page.

setUseSynonymSearch method

The setUseSynonymSearch method allows you to enable synonym search feature. By default, the synonym search feature is disabled. For details, see the Synonym search page.

setUseWordFormsSearch method

The setUseWordFormsSearch method allows you to enable the word forms search feature. By default, the word forms search feature is disabled. For details, see the Search for different word forms page.

More resources

GitHub examples

You may easily run the code from documentation articles and see the features in action in our GitHub examples:

Free online document search App

Along with full featured .NET library we provide simple, but powerful free Apps.

You are welcome to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more with our free online Free Online Document Search App.