Description
Currently, if a consumer of a numeric or ordinal-based docvalues iterator wants to know if the field is multivalued, then they need to access it via DocValues.getSortedXXX and then check to see if the returned iterator can be unwrapped to a singleton. This is fragile, and not necessarily supported by Codecs. We could build more consistent checks by storing a global maxValueCount entry on DocValuesSkipper. A singleton check can then be done by seeing if the global maxValueCount is equal to 1.