[ 
https://issues.apache.org/jira/browse/SOLR-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110639#comment-14110639
 ] 

shruti suri commented on SOLR-5416:
-----------------------------------

Hi Joel,

I am facing an issue with Facet count using  shard query and  collapse filter. 

Query:- 
http://localhost:8983/solr/core1/select?fq={!collapse%20field=type}&q=type:abc&facet=true&facet.field=type&shards=localhost:8983/solr/core1,localhost:8983/solr/core2

Output:-
<result name="response" numFound="1" start="0" maxScore="1.0"></result>
<lst name="facet_counts"> 
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="type"> 
<int name="abc">2</int>
<int name="cde">0</int>
<int name="swe">0</int>
</lst>
</lst>
<lst name="facet_dates"/>
<lst name="facet_ranges"/></lst></response>

Issue:- In the above output numFound="1" and facet count for abc is 2. While 
merging results from shards unique Facet count should drop. 

Regards
shruti



> CollapsingQParserPlugin breaks Tag/Exclude Faceting
> ---------------------------------------------------
>
>                 Key: SOLR-5416
>                 URL: https://issues.apache.org/jira/browse/SOLR-5416
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.6
>            Reporter: David Boychuck
>            Assignee: Joel Bernstein
>              Labels: group, grouping
>             Fix For: 4.6.1, 5.0
>
>         Attachments: CollapseQParserPluginPatch-solr-4.5.1.patch, 
> CollapsingQParserPlugin.java, SOLR-5416.patch, SOLR-5416.patch, 
> SOLR-5416.patch, SOLR-5416.patch, SOLR-5416.patch, SOLR-5416.patch, 
> SolrIndexSearcher.java, TestCollapseQParserPlugin.java
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Trying to use CollapsingQParserPlugin with facet tagging throws an exception. 
> {code}
>  ModifiableSolrParams params = new ModifiableSolrParams();
>     params.add("q", "*:*");
>     params.add("fq", "{!collapse field=group_s}");
>     params.add("defType", "edismax");
>     params.add("bf", "field(test_ti)");
>     params.add("fq","{!tag=test_ti}test_ti:5");
>     params.add("facet","true");
>     params.add("facet.field","{!ex=test_ti}test_ti");
>     assertQ(req(params), "*[count(//doc)=1]", 
> "//doc[./int[@name='test_ti']='5']");
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to