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

   ### Description
   
   Hi! This is my first time posting a GitHub issue for Apache Lucene. Please 
let me know if you need anything further.
   
   
https://github.com/apache/lucene/blob/569533bd76a115e239d8c621d2540462bc12d891/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/TermAutomatonQuery.java#L443-L447
   
   We should return relevant explain output here instead of returning `null` 
for `TermAutomatonQuery`. This would be helpful for users running document 
explain on synonym queries leveraging `TermAutomatonQuery`. Otherwise, certain 
queries that can nest other queries could throw a `NullPointerException` if 
their weight's `explain()` calls `TermAutomatonQuery#explain()`. 
   
   For example, if a `BooleanQuery` nests a `TermAutomatonQuery`, then 
`BooleanWeight` throws an NPE here when running `explain()`:
   
   
https://github.com/apache/lucene/blob/569533bd76a115e239d8c621d2540462bc12d891/lucene/core/src/java/org/apache/lucene/search/BooleanWeight.java#L75
   
   ### Version and environment details
   
   _No response_


-- 
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