You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mk...@apache.org on 2019/06/19 07:45:10 UTC
[lucene-solr] branch master updated: SOLR-7530: clarifying the doc
This is an automated email from the ASF dual-hosted git repository.
mkhl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 48a1cb0 SOLR-7530: clarifying the doc
48a1cb0 is described below
commit 48a1cb0bdc50b865a525ecddf447cc1b5c585d7f
Author: Mikhail Khludnev <mk...@apache.org>
AuthorDate: Wed Jun 19 10:45:01 2019 +0300
SOLR-7530: clarifying the doc
---
solr/solr-ref-guide/src/the-terms-component.adoc | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/solr/solr-ref-guide/src/the-terms-component.adoc b/solr/solr-ref-guide/src/the-terms-component.adoc
index 776ed80..8b1c59c 100644
--- a/solr/solr-ref-guide/src/the-terms-component.adoc
+++ b/solr/solr-ref-guide/src/the-terms-component.adoc
@@ -61,6 +61,8 @@ Example: `terms.fl=title`
Fetches the document frequency for a comma delimited list of terms. Terms are always returned in index order. If `terms.ttf` is set to true, also returns their total term frequency. If multiple `terms.fl` are defined, these statistics will be returned for each term in each requested field.
+
Example: `terms.list=termA,termB,termC`
++
+NOTE: When `terms.list` is specified, then terms are always sorted by `index`. Except `terms.ttf`, none of other terms parameters are supported when `terms.list` is specified.
`terms.limit`::
Specifies the maximum number of terms to return. The default is `10`. If the limit is set to a number less than 0, then no maximum limit is enforced. Although this is not required, either this parameter or `terms.upper` must be defined.
@@ -126,7 +128,9 @@ Example: `terms.sort=index`
`terms.ttf`::
If set to true, returns both `df` (docFreq) and `ttf` (totalTermFreq) statistics for each requested term in `terms.list`. In this case, the response format is:
-+
+
+XML:
+
[source,xml]
----
<lst name="terms">
@@ -139,6 +143,23 @@ If set to true, returns both `df` (docFreq) and `ttf` (totalTermFreq) statistics
</lst>
----
+JSON:
+
+[source,json]
+----
+{
+ "terms": {
+ "field": [
+ "termA",
+ {
+ "df": 22,
+ "ttf": 73
+ }
+ ]
+ }
+}
+----
+
`terms.upper`::
Specifies the term to stop at. Although this parameter is not required, either this parameter or `terms.limit` must be defined.
+