I figured it out. Here is what you want to do (excuse the Scala syntax).
docValues = DocValues.getSortedSet(contex.reader(), "myField")
docValues.setDocument(docNumber)
val values = Stream.continually(docValues.nextOrd).takeWhile(_ !=
SortedSetDocValues.NO_MORE_ORDS).map(b =>
NumericUtils.prefixCo
getSortedNumeric throws the following exception:
unexpected docvalues type SORTED_SET for field 'space_list' (expected one
of [SORTED_NUMERIC, NUMERIC]). Use UninvertingReader or index with
docvalues.
If I am reading the doumentation correctly, getSortedNumeric sorts the
values, but it is still f
: If I am finding the values of a long field for a single numeric field, I
: just do:
:
: DocValues.getNumeric(contex.reader(), "myField").get(docNumber). This
: returns the value of the field and everything is good.
:
: However, my field is a multi-valued long field. So, I need to do:
:
: DocV
If I am finding the values of a long field for a single numeric field, I
just do:
DocValues.getNumeric(contex.reader(), "myField").get(docNumber). This
returns the value of the field and everything is good.
However, my field is a multi-valued long field. So, I need to do:
DocValues.getSortedSet(