Shradha26 commented on issue #12558:
URL: https://github.com/apache/lucene/issues/12558#issuecomment-1722494326

   Hey @gsmiller, thanks for looking at the issue. Here's a draft PR for a test 
case that replicates this state: https://github.com/apache/lucene/pull/12563. 
The test ``testMaxDocIsNeverZero`` does not pass because I throw an 
``IllegalStateException`` from ``IntTaxonomyFacets`` when ``maxDoc==0``. I'm 
seeing this happen when I use a ``FacetsCollector`` that was returned in a 
``DrillSideways.search`` result for counting.
   I'm able to replicate this behaviour in ``IntTaxonomyFacets`` in the 
`branch_9_7` since it does not lazily initialise facet counting data 
structures. (The ``IntTaxonomyFacets`` on ``main`` branch does.)


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

Reply via email to