Koji, I'm unconvinced it makes sense for SynonymQuery to have minShouldMatch. Shouldn't the scenario of synonyms be a pure disjunction? If you don't think so can you give a practical counter-example? ~ David
On Tue, May 23, 2017 at 6:01 AM Koji Sekiguchi <koji.sekigu...@rondhuit.com> wrote: > Hi, > > Can we implement setMinimumNumberShouldMatch() for SynonymQuery, like > BooleanQuery? > > SynonymQuery was introduced in this ticket before I was aware: > https://issues.apache.org/jira/browse/LUCENE-6789 > > By this, analyzeBoolean() of QueryBuilder no longer creates BooleanQuery > but SynonymQuery > instead, and then precision of certain queries decreased because mm > parameter cannot be set. > > First, I thought we should revert analyzeBoolean() so it uses BooleanQuery > just like it used to be, > but we are already in 6.6, I think it is better for us to implement > setMinimumNumberShouldMatch() > for SynonymQuery so we can set mm parameter for it. > > Thought? > > Thanks, > > Koji > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > > -- Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker LinkedIn: http://linkedin.com/in/davidwsmiley | Book: http://www.solrenterprisesearchserver.com