jpountz opened a new issue, #12005:
URL: https://github.com/apache/lucene/issues/12005

   ### Description
   
   Lucene currently treats the different doc-value types as if they were 
independent features and `LeafReader#getXXXDocValues()` returns `null` in case 
of mismatch, e.g. retrieving binary doc values on a field that indexed numeric 
doc values.
   
   I recently learned that this behavior is considered trappy enough that some 
code bases [forbid these 
methods](https://github.com/apache/lucene/pull/11950#discussion_r1029470218), 
which makes me wonder if we should change our stance and fail 
`LeafReader#getXXXDocValues()` in case of mismatch?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to