I am using the terms_stats facet a lot to do aggregation and sorting based
on aggregated values. There are several instances where I have to show, lets
say, the third page of the sorted result set. In a regular query, I can use
the "size" and "from" properties to achieve this. But how can I do this with
facets? Currently if I have to fetch results 20-30, I have to set the facet
size to 30 and pick the bottom 10. Any better/more efficient way to do this?
On Monday, July 11, 2011 at 1:00 PM, Hari Shankar wrote:
Hi,
I am using the terms_stats facet a lot to do aggregation and sorting based on aggregated values. There are several instances where I have to show, lets say, the third page of the sorted result set. In a regular query, I can use the "size" and "from" properties to achieve this. But how can I do this with facets? Currently if I have to fetch results 20-30, I have to set the facet size to 30 and pick the bottom 10. Any better/more efficient way to do this?
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.