Re: get Multi-Valued field data from DocValues

2015-03-13 Thread Kevin Osborn
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

Re: get Multi-Valued field data from DocValues

2015-03-13 Thread Kevin Osborn
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

Re: get Multi-Valued field data from DocValues

2015-03-13 Thread Chris Hostetter
: 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

get Multi-Valued field data from DocValues

2015-03-13 Thread Kevin Osborn
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(