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