Looking at the lookup method at https://github.com/apache/lucene-solr/blob/5767764a2b621fce76c0b0529ddde550fdc00307/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java#L493
The parameter BooleanQuery contextQuery could well be a TermQuery. Is it worth generalizing that method to take as parameter the base Query instead? Thanks.
