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 ruby <rs...@gmail.com> on 2016/08/17 21:43:41 UTC
Using Solr invariants to set facet method?
Is it possible to use the invariants in Solr config to set facet.method to
override what user is sending?
<lst name="invariants">
<str name="facet.method">enum</bool>
</lst>
--
View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Solr invariants to set facet method?
Posted by Erick Erickson <er...@gmail.com>.
Setting the facet method to enum will have
consequences for the filterCache, especially
if you allow faceting on high-cardinality fields
so for that specific example I'd be cautious.
Best,
Erick
On Wed, Aug 17, 2016 at 3:01 PM, Alexandre Rafalovitch
<ar...@gmail.com> wrote:
> That's what it is there for. Are you seeing any issues?
>
> You can confirm whether it works or not by adding echoParams=all to
> the query (or in the defaults/invariants).
>
> Regards,
> Alex
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 18 August 2016 at 07:43, ruby <rs...@gmail.com> wrote:
>> Is it possible to use the invariants in Solr config to set facet.method to
>> override what user is sending?
>>
>> <lst name="invariants">
>> <str name="facet.method">enum</bool>
>> </lst>
>>
>>
>>
>> --
>> View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Solr invariants to set facet method?
Posted by ruby <rs...@gmail.com>.
Thanks for your reply. I was not seeing the param being added in return
results. but after adding echoParams=true, I see that facet method is being
added.
--
View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142p4292149.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Using Solr invariants to set facet method?
Posted by Alexandre Rafalovitch <ar...@gmail.com>.
That's what it is there for. Are you seeing any issues?
You can confirm whether it works or not by adding echoParams=all to
the query (or in the defaults/invariants).
Regards,
Alex
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/
On 18 August 2016 at 07:43, ruby <rs...@gmail.com> wrote:
> Is it possible to use the invariants in Solr config to set facet.method to
> override what user is sending?
>
> <lst name="invariants">
> <str name="facet.method">enum</bool>
> </lst>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Using-Solr-invariants-to-set-facet-method-tp4292142.html
> Sent from the Solr - User mailing list archive at Nabble.com.