You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2014/09/06 00:20:28 UTC

[jira] [Resolved] (SOLR-6300) facet.mincount fails to work if SolrCloud distrib=true is set

     [ https://issues.apache.org/jira/browse/SOLR-6300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erick Erickson resolved SOLR-6300.
----------------------------------
    Resolution: Won't Fix

date facets are deprecated and the fix for supporting this in distributed mode is too fragile. Using range facets instead will support this use-case, at least when  SOLR-6187 is checked in.

See a longer explanation at SOLR-6187

> facet.mincount fails to work if SolrCloud distrib=true is set
> -------------------------------------------------------------
>
>                 Key: SOLR-6300
>                 URL: https://issues.apache.org/jira/browse/SOLR-6300
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other, SolrCloud
>    Affects Versions: 5.0
>            Reporter: Vamsee Yarlagadda
>            Assignee: Erick Erickson
>
> I notice that using facet.mincount in SolrCloud mode with distrib=true fails to filter the facets based on the count. However, the same query with distrib=false works as expected.
> * Indexed some data as provided by the upstream test.
> https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/test/org/apache/solr/request/SimpleFacetsTest.java#L633
> * Test being run:
> https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/test/org/apache/solr/request/SimpleFacetsTest.java#L657
> * Running in SolrCloud mode with distrib=false (facet.mincount works as expected)
> {code}
> $ curl  "http://search-testing-c5-3.ent.cloudera.com:8983/solr/simple_faceting_coll/select?facet.date.start=1976-07-01T00%3A00%3A00.000Z&facet=true&facet.mincount=1&q=*%3A*&facet.date=bday&facet.date.other=all&facet.date.gap=%2B1DAY&facet.date.end=1976-07-01T00%3A00%3A00.000Z%2B1MONTH&rows=0&indent=true&wt=xml&distrib=false"
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader">
>   <int name="status">0</int>
>   <int name="QTime">3</int>
>   <lst name="params">
>     <str name="facet.date.start">1976-07-01T00:00:00.000Z</str>
>     <str name="facet">true</str>
>     <str name="indent">true</str>
>     <str name="facet.mincount">1</str>
>     <str name="q">*:*</str>
>     <str name="facet.date">bday</str>
>     <str name="distrib">false</str>
>     <str name="facet.date.gap">+1DAY</str>
>     <str name="facet.date.other">all</str>
>     <str name="wt">xml</str>
>     <str name="facet.date.end">1976-07-01T00:00:00.000Z+1MONTH</str>
>     <str name="rows">0</str>
>   </lst>
> </lst>
> <result name="response" numFound="33" start="0">
> </result>
> <lst name="facet_counts">
>   <lst name="facet_queries"/>
>   <lst name="facet_fields"/>
>   <lst name="facet_dates">
>     <lst name="bday">
>       <int name="1976-07-03T00:00:00Z">1</int>
>       <int name="1976-07-04T00:00:00Z">1</int>
>       <int name="1976-07-05T00:00:00Z">1</int>
>       <int name="1976-07-13T00:00:00Z">1</int>
>       <int name="1976-07-15T00:00:00Z">1</int>
>       <int name="1976-07-21T00:00:00Z">1</int>
>       <int name="1976-07-30T00:00:00Z">1</int>
>       <str name="gap">+1DAY</str>
>       <date name="start">1976-07-01T00:00:00Z</date>
>       <date name="end">1976-08-01T00:00:00Z</date>
>       <int name="before">2</int>
>       <int name="after">0</int>
>       <int name="between">6</int>
>     </lst>
>   </lst>
>   <lst name="facet_ranges"/>
> </lst>
> </response>
> {code}
> * SolrCloud mode with distrib=true (facet.mincount fails to show effect)
> {code}
> $ curl  "http://search-testing-c5-3.ent.cloudera.com:8983/solr/simple_faceting_coll/select?facet.date.start=1976-07-01T00%3A00%3A00.000Z&facet=true&facet.mincount=1&q=*%3A*&facet.date=bday&facet.date.other=all&facet.date.gap=%2B1DAY&facet.date.end=1976-07-01T00%3A00%3A00.000Z%2B1MONTH&rows=0&indent=true&wt=xml&distrib=true"
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader">
>   <int name="status">0</int>
>   <int name="QTime">12</int>
>   <lst name="params">
>     <str name="facet.date.start">1976-07-01T00:00:00.000Z</str>
>     <str name="facet">true</str>
>     <str name="indent">true</str>
>     <str name="facet.mincount">1</str>
>     <str name="q">*:*</str>
>     <str name="facet.date">bday</str>
>     <str name="distrib">true</str>
>     <str name="facet.date.gap">+1DAY</str>
>     <str name="facet.date.other">all</str>
>     <str name="wt">xml</str>
>     <str name="facet.date.end">1976-07-01T00:00:00.000Z+1MONTH</str>
>     <str name="rows">0</str>
>   </lst>
> </lst>
> <result name="response" numFound="63" start="0" maxScore="1.0">
> </result>
> <lst name="facet_counts">
>   <lst name="facet_queries"/>
>   <lst name="facet_fields"/>
>   <lst name="facet_dates">
>     <lst name="bday">
>       <int name="1976-07-01T00:00:00Z">0</int>
>       <int name="1976-07-02T00:00:00Z">0</int>
>       <int name="1976-07-03T00:00:00Z">2</int>
>       <int name="1976-07-04T00:00:00Z">2</int>
>       <int name="1976-07-05T00:00:00Z">2</int>
>       <int name="1976-07-06T00:00:00Z">0</int>
>       <int name="1976-07-07T00:00:00Z">0</int>
>       <int name="1976-07-08T00:00:00Z">0</int>
>       <int name="1976-07-09T00:00:00Z">0</int>
>       <int name="1976-07-10T00:00:00Z">0</int>
>       <int name="1976-07-11T00:00:00Z">0</int>
>       <int name="1976-07-12T00:00:00Z">1</int>
>       <int name="1976-07-13T00:00:00Z">1</int>
>       <int name="1976-07-14T00:00:00Z">0</int>
>       <int name="1976-07-15T00:00:00Z">2</int>
>       <int name="1976-07-16T00:00:00Z">0</int>
>       <int name="1976-07-17T00:00:00Z">0</int>
>       <int name="1976-07-18T00:00:00Z">0</int>
>       <int name="1976-07-19T00:00:00Z">0</int>
>       <int name="1976-07-20T00:00:00Z">0</int>
>       <int name="1976-07-21T00:00:00Z">1</int>
>       <int name="1976-07-22T00:00:00Z">0</int>
>       <int name="1976-07-23T00:00:00Z">0</int>
>       <int name="1976-07-24T00:00:00Z">0</int>
>       <int name="1976-07-25T00:00:00Z">0</int>
>       <int name="1976-07-26T00:00:00Z">0</int>
>       <int name="1976-07-27T00:00:00Z">0</int>
>       <int name="1976-07-28T00:00:00Z">0</int>
>       <int name="1976-07-29T00:00:00Z">0</int>
>       <int name="1976-07-30T00:00:00Z">1</int>
>       <int name="1976-07-31T00:00:00Z">0</int>
>       <str name="gap">+1DAY</str>
>       <date name="start">1976-07-01T00:00:00Z</date>
>       <date name="end">1976-08-01T00:00:00Z</date>
>       <int name="before">2</int>
>       <int name="after">1</int>
>       <int name="between">11</int>
>     </lst>
>   </lst>
>   <lst name="facet_ranges"/>
> </lst>
> </response>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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