You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Srinivas Kallepalli (Jira)" <ji...@apache.org> on 2019/11/20 13:29:00 UTC

[jira] [Comment Edited] (SOLR-7888) Make Lucene's AnalyzingInfixSuggester.lookup() method that takes a BooleanQuery filter parameter available in Solr

    [ https://issues.apache.org/jira/browse/SOLR-7888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16978423#comment-16978423 ] 

Srinivas Kallepalli edited comment on SOLR-7888 at 11/20/19 1:28 PM:
---------------------------------------------------------------------

Hi,

I am also looking for a way to filter out the suggestions using multiple fields. Is there a way to do that? For example I want to filter my suggestions based on validity and product type but I can only configure one contextField in the suggester.

 

Please help me out on this.

 cc: [~janhoy]  [~arcadius] 

Thanks,

Srini.


was (Author: skallepalli):
Hi,

I am also looking for a way to filter out the suggestions using multiple fields. Is there a way to do that? For example I want to filter my suggestions based on validity and product type but I can only configure one contextField in the suggester.

 

Please help me out on this.

 

Thanks,

Srini.

> Make Lucene's AnalyzingInfixSuggester.lookup() method that takes a BooleanQuery filter parameter available in Solr
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7888
>                 URL: https://issues.apache.org/jira/browse/SOLR-7888
>             Project: Solr
>          Issue Type: New Feature
>          Components: Suggester
>    Affects Versions: 5.2.1
>            Reporter: Arcadius Ahouansou
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: 5.4, 6.0
>
>         Attachments: SOLR-7888-7963.patch, SOLR-7888.patch, SOLR-7888.patch
>
>
>  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:
> {code}
> /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
> {code}
> etc
> Given that the context filtering in currently only implemented by the {code}AnalyzingInfixSuggester{code} and by the {code}BlendedInfixSuggester{code}, this initial implementation will support only these 2 lookup implementations.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org