Hi,

I'm having problems with queries that have multiple facet.query fields.

Per the docs:
[http://wiki.apache.org/solr/SimpleFacetParameters#Facet_Fields_and_Facet_Queries]

http://localhost:8983/solr/select?q=video&rows=0&facet=true&facet.field=inStock&facet.query=price:[*+TO+500]&facet.query=price:[500+TO+*]

<response>
<responseHeader><status>0</status><QTime>11</QTime></responseHeader>
<result numFound="3" start="0"/>
<lst name="facet_counts">
 <lst name="facet_queries">
  <int name="price:[* TO 500]">2</int>
  <int name="price:[500 TO *]">1</int>
 </lst>
 <lst name="facet_fields">
  <lst name="inStock">
        <int name="false">2</int>
        <int name="true">1</int>
  </lst>
 </lst>
</lst>
</response>

----
When I try this locally, the query:
select?q=*:*&rows=1&facet=true&facet.field=domain&facet.query=lastsaveddate:[NOW-7DAY
TO NOW]&facet.query=lastsaveddate:[NOW-1MONTH TO NOW]

The response is this - note that the first facet.query is lost:
<response>
    <lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">60</int>
        <lst name="params">
            <str name="facet">true</str>
            <str name="facet.query">lastsaveddate:[NOW-1MONTH TO NOW]</str>
            <str name="q">*:*</str>
            <str name="facet.field">domain</str>
            <str name="rows">1</str>
        </lst>
    </lst>
...
    <lst name="facet_counts">
        <lst name="facet_queries">
            <int name="lastsaveddate:[NOW-1MONTH TO NOW]">16</int>
        </lst>
        <lst name="facet_fields">
            <lst name="domain">
                <int name="text">9</int>
            </lst>
        </lst>
        <lst name="facet_dates"/>
        <lst name="facet_ranges"/>
        <lst name="facet_intervals"/></lst>
</response>

Am I doing something incorrectly? 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-facet-query-ignored-tp4170204.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to