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

Use this property to limit the number of retrieved documents returned. The engine will not stop searching after the limit is reached; instead, it will complete the search and collect the best matching files among all of the files retrieved. Therefore, this property will not affect the number of documents reported through the ReceiveFound callback.