I recently played with facets and queries. What I saw is when building a
facet in a query matching amounts of docs, the facet count is erroneous.
This is visible when you click the facet.
For exemple, I look for people named Mike, and create a facet on zip_code
field. The facet will show up 1234 people matching on zip_code 75017. When
I add zip_code="75017", I get 1578 people matching.
Is there a way to have the right count at first query ?
Two options:
Ask for more Terms. It will reduce the chance to get a not complete count
Only send your docs in a single shard and compute only on that shard. You will have accurate results.
Another option is to display to user percentages and not absolute values!
I recently played with facets and queries. What I saw is when building a facet in a query matching amounts of docs, the facet count is erroneous. This is visible when you click the facet.
For exemple, I look for people named Mike, and create a facet on zip_code field. The facet will show up 1234 people matching on zip_code 75017. When I add zip_code="75017", I get 1578 people matching.
Is there a way to have the right count at first query ?
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.