You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Renuka Srishti <re...@gmail.com> on 2018/02/13 08:56:57 UTC
Multiple context fields in suggester component
Hello All,
Is there any way to set multiple context fields in suggester component? Or
is there any way to apply multiple filters with suggester component in solr?
Thanks
Renuka Srishti
Re: Multiple context fields in suggester component
Posted by Alessandro Benedetti <a....@sease.io>.
You can start from here :
org/apache/solr/spelling/suggest/SolrSuggester.java:265
Cheers
-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: Multiple context fields in suggester component
Posted by Renuka Srishti <re...@gmail.com>.
Thanks Alessandro Benedetti for the response. Can you please share the
resources, so that I can explore more about customization of context filter.
On Tue, Feb 13, 2018 at 5:01 PM, Alessandro Benedetti <a....@sease.io>
wrote:
> Simple answer is No.
> Only one context field is supported out of the box.
> The query you provide as context filtering query ( suggest.cfq=<query> ) is
> going to be parsed and a boolean query for the context field is created
> [1].
>
> You will need some customizations if you are targeting that behavior.
>
> [1] query = new
> StandardQueryParser(contextFilterQueryAnalyzer).parse(contextFilter,
> CONTEXTS_FIELD_NAME);
>
>
>
>
> -----
> ---------------
> Alessandro Benedetti
> Search Consultant, R&D Software Engineer, Director
> Sease Ltd. - www.sease.io
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>
Re: Multiple context fields in suggester component
Posted by Alessandro Benedetti <a....@sease.io>.
Simple answer is No.
Only one context field is supported out of the box.
The query you provide as context filtering query ( suggest.cfq=<query> ) is
going to be parsed and a boolean query for the context field is created [1].
You will need some customizations if you are targeting that behavior.
[1] query = new
StandardQueryParser(contextFilterQueryAnalyzer).parse(contextFilter,
CONTEXTS_FIELD_NAME);
-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html