Offsetting by value in facet set (from parameter)


(James Reynolds) #1

Hello all:

I have a question at stack overflow above.

If this isn't possible right now, do any of you know if this will be
possible after lucene 4 is integrated?

--


(Igor Motov) #2

I think it can be implemented even without lucene 4.
With relatively simple modification elasticsearch could drop first N facets
before sending results to the client, it would still have to collect
(offset + size) facets from shards though in order to sort them correctly.
But I am really curious why do you need support for offsets in terms stats
facets? Could you tell us a little bit about your use case? Are you paging
through a lot of facets?

On Tuesday, October 23, 2012 9:22:15 PM UTC-4, James Reynolds wrote:

Hello all:

http://stackoverflow.com/questions/13041276/elasticsearch-offset-and-limit-facets

I have a question at stack overflow above.

If this isn't possible right now, do any of you know if this will be
possible after lucene 4 is integrated?

--


(James Reynolds) #3

Thanks for the reply:

You are exactly correct, the result set of the facets could be incredibly
long - possibly tens of thousands. Ideally, we'd like a user to be able to
click on pages something like 1,2,3 ... [last page] (typical pagination).

On Wednesday, October 24, 2012 6:41:29 AM UTC-4, Igor Motov wrote:

I think it can be implemented even without lucene 4.
With relatively simple modification elasticsearch could drop first N facets
before sending results to the client, it would still have to collect
(offset + size) facets from shards though in order to sort them correctly.
But I am really curious why do you need support for offsets in terms stats
facets? Could you tell us a little bit about your use case? Are you paging
through a lot of facets?

On Tuesday, October 23, 2012 9:22:15 PM UTC-4, James Reynolds wrote:

Hello all:

http://stackoverflow.com/questions/13041276/elasticsearch-offset-and-limit-facets

I have a question at stack overflow above.

If this isn't possible right now, do any of you know if this will be
possible after lucene 4 is integrated?

--


(system) #4