Opposite of SpanFirstQuery - Searching for documents by last term in a field

2012-12-11 Thread Hasenberger, Josef
Hi, I wonder if there is a way to use a SpanQuery to find documents with fields that end with a certain term. Kind of the oppoisite of SpanFirstQuery, i.e. "SpanLastQuery", if you want. What I would like to do: Find terms that are at the end of a field. Example: Assume the following field conte

StoredField available in Collector.setNextReader

2015-01-12 Thread Hasenberger, Josef
Hello, I have tried to retrieve values stored via StoredField type inside a Collector when its method setNextReader(AtomicReaderContext) was called. I used the following method from FieldCache, but do not get back any values: FieldCache.DEFAULT.getTerms(indexReader, field, false); Retrievi

What is the propper replacement for Filters working in DocValue fields?

2016-03-23 Thread Hasenberger, Josef
Hello, I am migrating a rather large application from Lucene 4.10 to Lucene 5.5.0. Since Filters are deprecated in Lucene 5, I am looking for an efficient replacement in our code. We use many Filters that calculate the DocIdSet by doing a lookup of numeric DocValues in some collection. Everythi

Efficient way to define large Boolean Occur.FILTER clause in Lucene 6

2018-06-26 Thread Hasenberger, Josef
Hi, I want to filter a result of a query by Long values (applicable for specific field, actually DocValue field) in Lucene 6 (as replacement for Filters which are removed in Lucene 6). The amount of allowed Long values can range from just a few up to hundred thousands. What I do now is to crea

RE: Efficient way to define large Boolean Occur.FILTER clause in Lucene 6

2018-07-08 Thread Hasenberger, Josef
: Wednesday, June 27, 2018 4:51 AM To: Lucene Users Mailing List Subject: Re: Efficient way to define large Boolean Occur.FILTER clause in Lucene 6 On Tue, Jun 26, 2018 at 7:02 PM, Hasenberger, Josef wrote: > However, I have a feeling that the conversion from Long values to Terms is >