Re: Unable to get offsets using AtomicReader.termPositionsEnum(Term)

2014-03-11 Thread Jefferson French
can think of this as a special form of a payload. This is > useful if you are examining *many documents* for just a few terms. For > example, many highlighting use cases. In solr this is activated with > storeOffsetsWithPositions=true. It is unrelated to term vectors. > > Hopefully t

Re: Unable to get offsets using AtomicReader.termPositionsEnum(Term)

2014-03-10 Thread Jefferson French
ldn't the reader use the same codec as used when the index was created? On Fri, Mar 7, 2014 at 1:37 PM, Jefferson French wrote: > We have an API on top of Lucene 4.6 that I'm trying to adapt to running > under Solr 4.6. The problem is although I'm getting the correct offset

Unable to get offsets using AtomicReader.termPositionsEnum(Term)

2014-03-07 Thread Jefferson French
We have an API on top of Lucene 4.6 that I'm trying to adapt to running under Solr 4.6. The problem is although I'm getting the correct offsets when the index is created by Lucene, the same method calls always return -1 when the index is created by Solr. In the latter case I can see the character o