Thanks Adrien! That makes sense now.
DocValues.getSortedSet is pretty cool since the app doesn't need to worry
about if the field is single valued or multi valued.
On Thu, Jul 9, 2015 at 5:16 PM, Adrien Grand wrote:
> LeafReader.get*Values is a low-level API whose return value depends on
> what
LeafReader.get*Values is a low-level API whose return value depends on
what you indexed: if you did not add doc values to your documents then
it will return null. This is similar to Fields.terms which returns
null if you did not index a field.
On the other hand, DocValues.get* is higher-level and