Background
I am trying to combine two functions that work perfectly separately, but cannot make them work together.
* 1) As described in the solr wiki , I can mark a specific fq and then exclude it on my facet.field. This will make my estimates of the fashions remain unchanged even when choosing a value, for example:
fq={!tag=pt}price:100&facet=true&facet.field={!ex=pt}price
* 2) I want to use facet.query as follows:
facet=true&facet.query=price:[0 TO 100]&facet.query=price:[100 TO *]
So, I want to combine * 1 and * 2, this is what I tried:
fq={!tag=pt}price:[0 to 100]&facet=true&facet.query={!ex=pt}price:[0 TO 100]&facet.query={!ex=pt}price:[100 TO *]
What actually happens is what I get back from Solr:
<lst name="facet_queries"> <int name="{!ex=pt}price:[0 TO 100]">8</int> <int name="{!ex=pt}price:[100 TO *]">19</int> </lst>
My question is:
Why {! ex = pt} part of the name? It ruined my logic. Maybe I abused it, if so, what is the right way?
Additional Information
I expect the following: (Same as what I get when starting * 2 without * 1)
<lst name="facet_queries"> <int name="price:[0 TO 100]">8</int> <int name="price:[100 TO *]">19</int> </lst>
This makes sense, because if I run * 1, this is what I get in facet_fields:
<lst name="facet_fields"> <lst name="price"> <int name="80">8</int> <int name="150">19</int> </lst> </lst>
He does not say name = "{! Ex = pt} price"
lucene solr
Eran H.
source share