lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varun Thacker <varunthacker1...@gmail.com>
Subject DocValues API and behaviour when no values for a field in an segment
Date Thu, 09 Jul 2015 11:04:39 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message