Is there a reason why I cannot use the SearchResponse.hits().totalHits() number instead of having a facet in the same query that returns the same number?
For example, do I need the facet in the query below or can I not just use the totalHits() count instead as both return the same number?
Is there a reason why I cannot use the SearchResponse.hits().totalHits()
number instead of having a facet in the same query that returns the same
number?
For example, do I need the facet in the query below or can I not just use
the totalHits() count instead as both return the same number?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.