Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16179 : Updated the documentation as reported in the ticket , along with the examples (#835)

Atita Arora174ceb0a9420
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/terms-component.adoc b/solr/solr-ref-guide/modules/query-guide/pages/terms-component.adoc
index f69cb0251cc..1a8f51ba395 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/terms-component.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/terms-component.adoc
@@ -68,8 +68,32 @@ s|Required |Default: none
+
Specifies the field from which to retrieve terms.
This parameter is required if `terms=true`.
+This parameter can be specified multiple times to retrieve terms for different fields.
+
Example: `terms.fl=title`
++
+Example: `terms.fl=title&terms=true&terms.fl=name&terms.list=cable,sony`
+
+[source,xml]
+----
+<response>
+ <lst name="responseHeader">
+ <bool name="zkConnected">true</bool>
+ <int name="status">0</int>
+ <int name="QTime">4</int>
+ </lst>
+ <lst name="terms">
+ <lst name="name">
+ <int name="cable">8661</int>
+ <int name="sony">21</int>
+ </lst>
+ <lst name="title">
+ <int name="cable">11387</int>
+ <int name="sony">3921</int>
+ </lst>
+ </lst>
+</response>
+----
`terms.list`::
+