Close
dtSearch Engine API for Java
SearchJob.setAutoStopLimit Method
Syntax
Java
public void setAutoStopLimit(int newAutoStopLimit);

AutoStopLimit causes a search to halt automatically when a specified number of documents have been found. This provides a way to limit the resources consumed by searches that retrieve a very large number of documents. When the number of files retrieved reaches the autoStopLimit value, the search will immediately halt, and the code dtsErSearchLimitReached will be returned through the error handler for the search job. If the AutoStopLimit is 0, the search will not halt.