[
https://issues.apache.org/jira/browse/SOLR-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819224#comment-13819224
]
Joel Bernstein commented on SOLR-5416:
--------------------------------------
David,
Here is the flow as I see it with the patch:
1) The intitial search executes and produces a result based on collapsing the
groups by score.
2) The facet component needs to regenerate the docset because of the
tag/exclude parameters. But the scorer is not present when regenerating the
docset, so it is using logic that overwrites the group-head each time. This
will result in the document that is found latest in the index becoming the
group-head, for each group.
So, the result set used to calculate the facet, will be different from the
result set used to generate the search results.
To keep these in sync you would need to have step 2, also collapse based on
score.
> CollapsingQParserPlugin bug with Tagging
> ----------------------------------------
>
> 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
> Assignee: Joel Bernstein
> Labels: group, grouping
> Fix For: 4.6, 5.0
>
> Attachments: SOLR-5416.patch
>
> 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.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]