You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2013/12/06 05:05:35 UTC
[jira] [Commented] (SOLR-5536) Add ValueSource collapse criteria to
CollapsingQParsingPlugin
[ https://issues.apache.org/jira/browse/SOLR-5536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840942#comment-13840942 ]
Joel Bernstein commented on SOLR-5536:
--------------------------------------
Initial patch, generated from trunk, adds the ValueSource collapse criteria to the CollapsingQParserPlugin.
The collapseScore function query is not yet included.
> Add ValueSource collapse criteria to CollapsingQParsingPlugin
> -------------------------------------------------------------
>
> Key: SOLR-5536
> URL: https://issues.apache.org/jira/browse/SOLR-5536
> Project: Solr
> Issue Type: Improvement
> Components: search
> Affects Versions: 4.6
> Reporter: Joel Bernstein
> Priority: Minor
> Fix For: 5.0, 4.7
>
> Attachments: SOLR-5536.patch
>
>
> It would be useful for the CollapsingQParserPlugin to support ValueSource collapse criteria.
> Proposed syntax:
> {code}
> fq={!collapse field=collapse_field max=value_source}
> {code}
> This ticket will also introduce a function query called "collapseScore", which will return the score of the current document being collapsed. This will allow score to be incorporated into collapse criteria functions.
> A simple example of the collapseScore usage:
> {code}
> fq={!collapse field=collapse_field max=sum(collapseScore(), field(x))}
> {code}
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org