Re: version 4.10.3 AnalyzingInfixSuggester with multiple contexts

2015-01-09 Thread Michael McCandless
Well this is by design really. Ie, the original intent here (4.10.3) is to return a suggestion if it has any of the specified contexts. Maybe for 4.10.3 you could subclass AIS and override finishQuery to rewrite the SHOULD to MUST in your case? Mike McCandless http://blog.mikemccandless.com O

Re: version 4.10.3 AnalyzingInfixSuggester with multiple contexts

2015-01-09 Thread Michael McCandless
That change (a new feature, to let you control MUST vs SHOULD for each context) was done with https://issues.apache.org/jira/browse/LUCENE-6050 But it's a new feature, not a bug ... and 4.10.x is for bug fixes only, so I don't think we will backport it. Mike McCandless http://blog.mikemccandless

version 4.10.3 AnalyzingInfixSuggester with multiple contexts

2015-01-09 Thread Greg Huber
Hello, I am trying to use multiple contexts on the org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester but there is a mistake on the CONTEXTS_FIELD_NAME, the BooleanClause.Occur.SHOULD needs to be BooleanClause.Occur.MUST. ( see << below) I noticed that its been fix