Drawbacks of using Docvalues Fields

2016-05-31 Thread Chitra R
Hi, I have one doubt. Actually I have indexed 50 documents for both SortedNumericDocValuesField and IntField separately . Each document consists of 49 fields. After that, i performed indexing & searching ( with & without sorting) . It seems DocValuesField indexes and searches the docume

Re: How can Docvalues so efficient

2016-05-31 Thread Ting Yao
Sorry for the delay. And thank you for your answers. Can I understand it like this: Because the doc values are stored on disk, when Searcher gets a few values of a field, then it reads disk to get them. The Lucene stores the start position of *every *field. So when reads disk, it can find the start

Re: SortedNumericDocValuesFIeld

2016-05-31 Thread Chitra R
Hi, Could you please explain how to store the SortedNumericDocValuesField to include in the code? Thanks, Chitra On Tue, May 31, 2016 at 3:02 PM, Chitra R wrote: > Thanks. > > On Fri, May 27, 2016 at 6:02 PM, Adrien Grand wrote: > >> DocValues.getSortedNumeric is indeed not really us

Re: SortedNumericDocValuesFIeld

2016-05-31 Thread Chitra R
Thanks. On Fri, May 27, 2016 at 6:02 PM, Adrien Grand wrote: > DocValues.getSortedNumeric is indeed not really useful for high-level code, > such as you example which is getting the sort values for each top hit. > However, if you wanted to implement lower level functionality like building >