Skip to content

Commit 51995b5

Browse files
author
ehennum
committed
Bug:25663 tweak JavaDoc to explain search results total is an estimate
git-svn-id: svn+ssh://svn.marklogic.com/project/engsvn/client-api/java/branches/b2_0@159938 62cac252-8da6-4816-9e9d-6dc37b19578c
1 parent bb46325 commit 51995b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/com/marklogic/client/query/SearchResults.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ public interface SearchResults {
3333
public QueryDefinition getQueryCriteria();
3434

3535
/**
36-
* Returns the total number of results.
37-
* @return The number of results.
36+
* Returns an estimate of the total number of results, which is accurate for unfiltered
37+
* queries. In unfiltered queries, documents are matched based entirely on indexes.
38+
* In filtered queries, documents are inspected during retrieval, which allows criteria
39+
* for which indexes don't exist but makes the final result count unpredictable.
40+
* @return The result estimate.
3841
*/
3942
public long getTotalResults();
4043

0 commit comments

Comments
 (0)