gsmiller commented on code in PR #11950: URL: https://github.com/apache/lucene/pull/11950#discussion_r1029494212
########## lucene/CHANGES.txt: ########## @@ -143,6 +143,9 @@ Bug Fixes * GITHUB#11907: Fix latent casting bugs in BKDWriter. (Ben Trent) +* GITHUB#11950: Fix NPE in BinaryRangeFieldRangeQuery variants when the queried field doesn't exist + in a segment or is of the wrong type. (Greg Miller) Review Comment: So I checked this scenario, and indexing with the wrong type does in fact result in an NPE. `reader.getBinaryDocValues` returns `null` if the field exists in the segment but wasn't indexed with BDV. In my test case, I'm indexing a `StringField` called "foo" and then trying to load "foo" through `reader.getBinaryDocValues`, which just returns `null`. -- 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 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