We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb46325 commit 51995b5Copy full SHA for 51995b5
src/main/java/com/marklogic/client/query/SearchResults.java
@@ -33,8 +33,11 @@ public interface SearchResults {
33
public QueryDefinition getQueryCriteria();
34
35
/**
36
- * Returns the total number of results.
37
- * @return The number of results.
+ * Returns an estimate of the total number of results, which is accurate for unfiltered
+ * 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.
41
*/
42
public long getTotalResults();
43
0 commit comments