You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::getTotalFiles Method
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::getTotalFiles Method

Returns the number of files retrieved in the search, which may be more than the number actually stored in search results

int getTotalFiles();

If search results were generated by a search, TotalFiles will contain the number of documents retrieved in the search, including documents that were not retained in the SearchResults object due to the MaxFilesToRetreive limit. 

If search results were generated in any other way, such as through the unionWith or intersectionOf operations, then TotalFiles will be the number of documents actually stored in search results.

Copyright (c) 1995-2023 dtSearch Corp. All rights reserved.