[ https://issues.apache.org/jira/browse/LUCENE-7505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-7505: --------------------------------------- Attachment: LUCENE-7505.patch Patch w/ test + fix; I think it's ready. The problem was we were producing this BooleanQuery when user typed "foo": {noformat} foo +context:bar {noformat} when you did not require all terms and provided a context filter on bar, but of course this will include hits that had {{context:bar}} but not {{foo}}. This fix is easy: in this case, I push the {{foo}} part (which can be multiple terms) down into a new BQ MUST clause. > AnalyzingInfixSuggester returns wrong results with allTermsRequired=false > plus contexts > --------------------------------------------------------------------------------------- > > Key: LUCENE-7505 > URL: https://issues.apache.org/jira/browse/LUCENE-7505 > Project: Lucene - Core > Issue Type: Bug > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: master (7.0), 6.3 > > Attachments: LUCENE-7505.patch > > > I hit this bug while dog-food eating (attempting to upgrade > http://jirasearch.mikemccandless.com from 4.6.x to 6.x): > If you ask {{AnalyzingInfixSuggester}} for suggestions, but 1) you do not > require all terms to match, and 2) you provide a context for filtering the > results, then you'll get back results that did not match any of the terms > from the user's query but did match solely the context filter. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org