You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2022/05/06 15:47:37 UTC

[solr] branch main updated: SOLR-16179 : Updated the documentation as reported in the ticket , along with the examples (#835)

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

epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 174ceb0a942 SOLR-16179 : Updated the documentation as reported in the ticket , along with the examples (#835)
174ceb0a942 is described below

commit 174ceb0a94202e40c57781a9937c13bcfb3b6290
Author: Atita Arora <at...@users.noreply.github.com>
AuthorDate: Fri May 6 11:47:31 2022 -0400

    SOLR-16179 : Updated the documentation as reported in the ticket , along with the examples (#835)
---
 .../modules/query-guide/pages/terms-component.adoc | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

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`::
 +