Currently we have two APIs for getting DocValues for a field -

1. DocValues.getSorted(r, "bogus")
2. r.getSortedSetDocValues("bogus");

Both the javadocs clearly state that 1 will return an empty set and 2 will
return null if no values for the field are present in an segment.

Was curious as to why do we have two different ways to fetch it and why do
they have an different behaviour on no values for the field are present in
an segment.

-- 


Regards,
Varun Thacker

Reply via email to