dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchReportJob::maxWordsToRead Data Member
long maxWordsToRead;

Number of words to scan in each document looking for blocks of context to include in the report. For example, if maxWordsToRead=5000, then the search report will only include hits that occur in the first 5000 words in each document. This setting can be used to generate faster (but not necessarily complete) reports by limiting the search report to hits near the beginning of each document.