Description
LUCENE-6464 has introduced a very flexible lookup method that takes as parameter a BooleanQuery that is used for filtering results.
This ticket is to expose that method to Solr.
This would allow user to do:
/suggest?suggest=true&suggest.build=true&suggest.q=term&suggest.contextFilterQuery=contexts:tennis /suggest?suggest=true&suggest.build=true&suggest.q=term&suggest.contextFilterQuery=contexts:golf AND contexts:football
etc
Given that the context filtering in currently only implemented by the
AnalyzingInfixSuggester
and by the
BlendedInfixSuggester
, this initial implementation will support only these 2 lookup implementations.