Re: Lucene 4.2 Doc Vals

2013-06-04 Thread Arun Kumar K
My bad ! Taking time to get used to 4.X ways :) Thanks Uwe for spotting the problem and for the useful pointers! Arun On Tue, Jun 4, 2013 at 2:05 PM, Uwe Schindler wrote: > Hi. > > Your code is wrong: You must use the realdocid variable on vals.get (). > > Your code might be inefficient for r

Re: Lucene 4.2 Doc Vals

2013-06-04 Thread Uwe Schindler
Hi. Your code is wrong: You must use the realdocid variable on vals.get (). Your code might be inefficient for random lookup. You schould do a bibary search to find the right leaf. ComposuteReader and ReaderUtil have utility methods to do this. Uwe Arun Kumar K schrieb: >Hi Guys, > >I am