Hi All,
I have a requirement for updating lucene index (add single field for
existing docs and modify value of another field). These documents contain
many other fields that do not need any modifications. But as I understand
luence provides delete/add mechanism for even single field value updates.
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
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 wh