Re: NumericDocValues vs SortedNumericDocValues

2018-02-06 Thread Adrien Grand
For a single-valued double, you should create a field at index time by calling `new NumericDocValuesField(myDoubleFieldName, Double.doubleToLongBits(myDoubleValue))` at index time and then sort using `new SortField(myDoubleFieldName, SortField.Type.DOUBLE)`. SortedNumericDocValues is about storing

NumericDocValues vs SortedNumericDocValues

2018-02-05 Thread Tom Hirschfeld
Hello, I need to sort the results of a query based on a single double value for each document. I am not sure which of the NumericDocValues or the SortedNumericDocValues would be best to use. Each document will have a single value indexed. We are indexing ~100m - 1B documents and each query will so