Pagination with faceting?


(Hari Shankar) #1

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?

Thanks,
Hari


(Shay Banon) #2

Nope, thats the way to do it.

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?

Thanks,
Hari


(system) #3