Accessing TermVector content at the result page building stage

2013-10-04 Thread Igor Shalyminov
Hello! I need to access token position and payload info during the search result page building. I need to do this for 10 documents max, so retrieving TermVectors is totally OK for me. Say, I retrieve it for one document: Terms tv = _indexDirectoryReader.getTermVector(0, "wordform"); >From the

Re: Associated values for a field and its value

2013-10-04 Thread Alice Wong
Okay, it makes complete sense. Thanks. On Fri, Oct 4, 2013 at 5:15 AM, Michael Sokolov < msoko...@safaribooksonline.com> wrote: > On 10/3/13 6:04 PM, Alice Wong wrote: > > Mike, > > That's an interesting idea. The only drawback is we have to re-parse the > doc and find where it matches and wh

Re: Indexing documents with multiple field values

2013-10-04 Thread Igor Shalyminov
Hi all! A little bit more of exploration:) After indexing with multiple atomic field values, here is what I get: indexSearcher.doc(0).getFields("gramm") stored,indexed,tokenized,termVector,omitNorms stored,indexed,tokenized,termVector,omitNorms stored,indexed,tokenized,termVector,omitNorms stor

Re: Associated values for a field and its value

2013-10-04 Thread Michael Sokolov
On 10/3/13 6:04 PM, Alice Wong wrote: Mike, That's an interesting idea. The only drawback is we have to re-parse the doc and find where it matches and what the associated values are. It could be a performance issue if the doc becomes bigger and more complex. It's true there is some overhead f