You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2020/10/09 17:05:24 UTC

[lucene-solr] 02/02: Ref Guide: backport Ranking QParser docs from #1865

This is an automated email from the ASF dual-hosted git repository.

ctargett pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 4d22711ae2c947b0eaa5410f02bca539ed915c6a
Author: Cassandra Targett <ca...@lucidworks.com>
AuthorDate: Fri Oct 9 12:04:34 2020 -0500

    Ref Guide: backport Ranking QParser docs from #1865
---
 solr/solr-ref-guide/src/other-parsers.adoc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/solr/solr-ref-guide/src/other-parsers.adoc b/solr/solr-ref-guide/src/other-parsers.adoc
index e50dcf9..65994090 100644
--- a/solr/solr-ref-guide/src/other-parsers.adoc
+++ b/solr/solr-ref-guide/src/other-parsers.adoc
@@ -1067,6 +1067,17 @@ For easy filter construction to drill down in faceting, the <<Term Query Parser,
 
 For full analysis on all fields, including text fields, you may want to use the <<Field Query Parser,FieldQParserPlugin>>.
 
+== Ranking Query Parser
+
+The `RankQParserPlugin` is a faster implementation of ranking-related features of `FunctionQParser` and can work together with specialized field of {solr-javadocs}/solr-core/org/apache/solr/schema/RankField.html[`RankFields`] type.
+
+It allows queries like:
+
+[source,text]
+----
+http://localhost:8983/solr/techproducts?q=memory _query_:{!rank f='pagerank', function='log' scalingFactor='1.2'}
+----
+
 == Re-Ranking Query Parser
 
 The `ReRankQParserPlugin` is a special purpose parser for Re-Ranking the top results of a simple query using a more complex ranking query.