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.1 or greater

Cancelling Search Operation

GroupDocs.Search for .NET API allows the possibility of cancelling the search operation after a specific time defined. Using below mentioned method you can cancel search operation at run time.

The Recipe

To perform date range search, following steps are needed to be followed:

  • Instantiate Index
  • Add documents folder to Index
  • Create Cancellation object cancellation
  • Cancel search after specified time using Cancellation.Cancel()
  • Perform search operation by passing some valid query in the search query and search parameters
  • Save search results to SearchResults
  • Show list of searched files

The Code

This example shows how to search with time limitation: 

 

 

Labels
  • No labels