MarcusSorealheis commented on code in PR #12208: URL: https://github.com/apache/lucene/pull/12208#discussion_r1160478745
########## lucene/sandbox/src/test/org/apache/lucene/sandbox/search/TestTermAutomatonQuery.java: ########## @@ -842,6 +843,96 @@ public void testRewriteSimplePhrase() throws Exception { IOUtils.close(w, r, dir); } + /* Implement a custom term automaton query to ensure that rewritten queries + * do not get rewritten to primitive queries. The custom extension will allow + * the following explain tests to evaluate Explain. Review Comment: I could add `for the query we need to test, TermAutomatonQuery` or `TermAutomatonWeights`. I also think the custom class is so simple, it doesn't need much documenting. -- 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