[
https://issues.apache.org/jira/browse/SOLR-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777303#comment-13777303
]
Simon Endele commented on SOLR-5027:
------------------------------------
Sounds good.
I propose to add an additional parameter "expand.fq" to restrict the expanded
documents to a certain filter query.
Sometimes the complete groups are very large and should only be expanded by one
or a few representatives of that group. Other group members that are not hit by
the main query are not interesting (at least in the first place).
Note that this is different from adding a basic filter query, since documents
that are hit by the main query but not by expand.fq are kept.
Example: Group consisting of: representative "A", more group members "B" and
"C".
Query hits "B", group is expanded by "A", but not "C" (due to expand.fq) =>
Result: "A", "B"
A filter query before expanding would filter out "B" and thus yield no results
for this group.
A filter query after expanding would filter out "B" and "C" thus keep only "A".
Is that technically possible? Maybe this is worth a separate issue...
> Result Set Collapse and Expand Plugins
> --------------------------------------
>
> Key: SOLR-5027
> URL: https://issues.apache.org/jira/browse/SOLR-5027
> Project: Solr
> Issue Type: New Feature
> Components: search
> Affects Versions: 5.0
> Reporter: Joel Bernstein
> Priority: Minor
> Attachments: SOLR-5027.patch, SOLR-5027.patch, SOLR-5027.patch
>
>
> This ticket introduces two new Solr plugins, the *CollapsingQParserPlugin*
> and the *ExpandComponent*.
> The *CollapsingQParserPlugin* is a PostFilter that performs field collapsing.
> This allows field collapsing to be done within the normal search flow.
> Initial syntax:
> fq=(!collapse field=<field_name>}
> All documents in a group will be collapsed to the highest ranking document in
> the group.
> The *ExpandComponent* is a search component that takes the collapsed docList
> and expands the groups for a single page based on parameters provided.
> Initial syntax:
> expand=true - Turns on the expand component.
> expand.field=<field> - Expands results for this field
> expand.limit=5 - Limits the documents for each expanded group.
> expand.sort=<sort spec> - The sort spec for the expanded documents. Default
> is score.
> expand.rows=500 - The max number of expanded results to bring back. Default
> is 500.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]