uschindler commented on issue #889: LUCENE-8983: Add PhraseWildcardQuery to control multi-terms expansions in a phrase URL: https://github.com/apache/lucene-solr/pull/889#issuecomment-554251305 Hi, the trick is to use a custom rewrite method that rewrites instead to a query to some arraylist or whatever. Once collected enough terms stop it. I did this for many implementations (I think there is also one in Lucene). Nevertheless, we can still think about making getTermsEnum() public, but then we should clearly define how this method must be called. I'd prefer to add some final public convenience wrapper method in the MTQ class to allow external usage. Maybe this one should take a LeafReader instance. Another way is to make the one without Attributes final and public, as this one looks like one to be called from the outside.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org