Re: Term vector Lucene 4.2

2013-04-02 Thread Adrien Grand
On Tue, Apr 2, 2013 at 12:45 PM, andi rexha wrote: > Hi Adrien, > Thank you very much for the reply. > > I have two other small question about this: > 1) Is "final int freq = docsAndPositions.freq();" the same with > "iterator.totalTermFreq()" ? In my tests it returns the same result and from >

RE: Term vector Lucene 4.2

2013-04-02 Thread andi rexha
u...@gmail.com > Date: Tue, 2 Apr 2013 12:05:12 +0200 > Subject: Re: Term vector Lucene 4.2 > To: java-user@lucene.apache.org > > Hi Andi, > > Here is how you could retrieve positions from your document: > > Terms termVector = indexReader.getTermVector(docId, fieldN

Re: Term vector Lucene 4.2

2013-04-02 Thread Adrien Grand
Hi Andi, Here is how you could retrieve positions from your document: Terms termVector = indexReader.getTermVector(docId, fieldName); TermsEnum reuse = null; TermsEnum iterator = termVector.iterator(reuse); BytesRef ref = null; DocsAndPositionsEnum docsAndPositions = null;

Re: term vector - WITH_POSITIONS_OFFSETS vs YES in terms of search performance

2010-11-30 Thread Michael McCandless
The performance impact should only be at indexing time, unless you actually retrieve the vectors for some number of hits at search time. Mike On Tue, Nov 30, 2010 at 2:28 PM, Maricris Villareal wrote: > Hi, > > Could someone tell me the effect (if any) of having term vectors set to > WITH_POSITI

Re: Term Vector Question

2006-03-22 Thread Daniel Cortes
Ok, thks. I read another time my question and it's normally I didn't obtain any reply :D .Excuseme My index contain fields like CONTAIN,GROUPID,USERID,TOOL. My question is how can I do to obtain a list of terms contained in a group of results. For example, I want all the terms in field CONTAIN

Re: Term Vector Question

2006-03-21 Thread Grant Ingersoll
Daniel, Not sure I understand your problem, could you expand on it more, please. Daniel Cortes wrote: Hi everybody, How can I do to obtain Terms of an specific Querry( for example all the terms of a specific group, field " ID_GROUP" ) The only thing that now I think to do is a search and obtai

Re: Term Vector

2006-03-01 Thread Rajesh Munavalli
This has been discussed previously. Here are the links http://www.gossamer-threads.com/lists/lucene/java-user/9189#9189 http://www.gossamer-threads.com/lists/lucene/java-user/32362#32362 Hope that helps, Rajesh Munavalli On 3/1/06, Srikanth Kallurkar <[EMAIL PROTECTED]> wrote: > > Hi all, > >