[
https://issues.apache.org/jira/browse/LUCENE-5528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196155#comment-14196155
]
Arcadius Ahouansou commented on LUCENE-5528:
--------------------------------------------
Hello [~mikemccand]
For the AnalazingInfixSuggester, does it make sens to have a new override for
the method lookup() with an additional param *allContextsRequired* , similar to
allTermsRequired
{code}
lookup(CharSequence key, Set<BytesRef> contexts, int num, boolean
allTermsRequired, boolean doHighlight, boolean allContextsRequired)
{code}
which will make it possible to have an "AND" behaviour for the contexts when
you have many contexts instead of the default "OR"?
This means that line
https://github.com/apache/lucene-solr/blob/trunk/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingInfixSuggester.java#L486
will now use *BooleanClause.Occur.SHOULD* or *BooleanClause.Occur.MUST*
depending on the value of the new param *allContextsRequired* ...
We currently have a use-case for this.
Thanks.
Arcadius.
> Add context to AnalyzingInfixSuggester
> --------------------------------------
>
> Key: LUCENE-5528
> URL: https://issues.apache.org/jira/browse/LUCENE-5528
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 4.8, Trunk
>
> Attachments: LUCENE-5528-1.patch, LUCENE-5528-1.patch,
> LUCENE-5528-1.patch, LUCENE-5528-1.patch, LUCENE-5528.patch,
> LUCENE-5528.patch, contextInputIteratImpl.patch
>
>
> Spinoff from LUCENE-5350.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]