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

2014-03-11 Thread Jefferson French
Thank you, Robert. You are right, I was confused between the two. I also didn't know the "storeOffsetsWithPositions" existed. My code works as I expected now. On Mon, Mar 10, 2014 at 11:11 PM, Robert Muir wrote: > Hello, I think you are confused between two different index > structures, probabl

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

2014-03-10 Thread Robert Muir
Hello, I think you are confused between two different index structures, probably because of the name of the options in solr. 1. indexing term vectors: this means given a document, you can go lookup a miniature "inverted index" just for that document. That means each document has "term vectors" whi

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

2014-03-10 Thread Jefferson French
This looks like a codec issue, but I'm not sure how to address it. I've found that a different instance of DocsAndPositionsEnum is instantiated between my code and Solr's TermVectorComponent. Mine: org.apache.lucene.codecs.lucene41.Lucene41PostingsReader$EverythingEnum Solr: org.apache.lucene.cod

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