You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchJob Class > DSearchJob::SetAutoStopLimit Method
DSearchJob::SetAutoStopLimit Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DSearchJob::SetAutoStopLimit Method

Request that a search automatically halt after more than a specified number of files have been retrieved

Syntax
C++
void SetAutoStopLimit(long aLimit);
Parameters
Description
long aLimit
The limit on the number of files to retrieve.

The AutoStopLimit value forces a search to halt after a certain number of files have been found. The MaxFilesToRetrieve setting, in contrast, lets the search complete, and limits the number of items collected in search results to the best-matching files.