Re: TermRangeQuery performance oddness

2013-05-07 Thread Aleksey
Thank you for the detailed answer. I'll look into the FieldCacheRangeFilter. Is there another way of getting a page of results starting with some term that does not have similar issue? Basically I want to implement pagination of docs sorted by title, next page starting from last doc of the previous

RE: TermRangeQuery performance oddness

2013-05-07 Thread Uwe Schindler
Hi, The problem is by design: Lucene is an inverted index, so lookups can only be done by single terms and find the documents related to every single term. To execute a range, the query first have to position the terms enum on the first term and then iterate over all *terms* in the index (not d