[
https://issues.apache.org/jira/browse/SOLR-5973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joel Bernstein updated SOLR-5973:
---------------------------------
Description:
This ticket introduces a new RankQuery and MergeStrategy to Solr. By extending
the RankQuery class and implementing it's interface you can specify a custom
ranking collector (TopDocsCollector) and distributed merge strategy for a Solr
query.
A new "rq" http parameter was added to support specifying a rank query using a
custom QParserPlugin.
Sample syntax:
q=*:*&wt=json&indent=true&rq={!rank}
In the sample above the rq={!rank} points to a QParserPlugin that extends
RankQuery.
was:
This ticket adds the ability to plugin a custom ranking collector to Solr. The
proposed design is much simpler then SOLR-4465, which includes configuration
support and support for pluggable analytics collectors.
In this design, a CollectorFactory can be set onto the ResponseBuilder by a
custom SearchComponent. The CollectorFactory is then used to inject a custom
TopDocsCollector into the SolrIndexSearcher.
> Pluggable Ranking Collectors
> ----------------------------
>
> Key: SOLR-5973
> URL: https://issues.apache.org/jira/browse/SOLR-5973
> Project: Solr
> Issue Type: New Feature
> Components: search
> Reporter: Joel Bernstein
> Assignee: Joel Bernstein
> Priority: Minor
> Fix For: 4.9
>
> Attachments: SOLR-5973.patch, SOLR-5973.patch, SOLR-5973.patch,
> SOLR-5973.patch, SOLR-5973.patch, SOLR-5973.patch, SOLR-5973.patch,
> SOLR-5973.patch, SOLR-5973.patch, SOLR-5973.patch, SOLR-5973.patch,
> SOLR-5973.patch, SOLR-5973.patch
>
>
> This ticket introduces a new RankQuery and MergeStrategy to Solr. By
> extending the RankQuery class and implementing it's interface you can specify
> a custom ranking collector (TopDocsCollector) and distributed merge strategy
> for a Solr query.
> A new "rq" http parameter was added to support specifying a rank query using
> a custom QParserPlugin.
> Sample syntax:
> q=*:*&wt=json&indent=true&rq={!rank}
> In the sample above the rq={!rank} points to a QParserPlugin that extends
> RankQuery.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]