Limiting queries by time

DSE Search supports limiting queries by time.

DSE Search supports limiting queries by time by using the Solr timeAllowed parameter. DSE Search differs from native Solr:
  • If the timeAllowed is exceeded, an exception is thrown.
  • If the timeAllowed is exceeded, and the additional shards.tolerant parameter is set to true, the application returns the partial results collected so far.

    When partial results are returned, the CQL custom payload contains the DSESearch.isPartialResults key.

Example with a 30 second timeout:
SELECT * FROM users where solr_query = '{ "q": "*:*", "timeAllowed":30000}';