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 2020/06/04 16:27:02 UTC
[lucene-solr] branch branch_8x updated: SOLR-14419: Ref Guide
update for {ref:param}
This is an automated email from the ASF dual-hosted git repository.
mkhl pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 3bbb8e3 SOLR-14419: Ref Guide update for {ref:param}
3bbb8e3 is described below
commit 3bbb8e3d4168c3d84658438e10fadf98da08d006
Author: Mikhail Khludnev <mk...@apache.org>
AuthorDate: Thu Jun 4 18:23:45 2020 +0300
SOLR-14419: Ref Guide update for {ref:param}
---
solr/solr-ref-guide/src/json-query-dsl.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/solr-ref-guide/src/json-query-dsl.adoc b/solr/solr-ref-guide/src/json-query-dsl.adoc
index e38ea08..3c77a5d 100644
--- a/solr/solr-ref-guide/src/json-query-dsl.adoc
+++ b/solr/solr-ref-guide/src/json-query-dsl.adoc
@@ -341,7 +341,7 @@ include::{example-source-dir}JsonRequestApiTest.java[tag=solrj-ipod-query-bool-f
== Additional Queries
-Multiple additional queries might be specified under `queries` key with all syntax alternatives described above. Every entry might have multiple values in array. Notice that old-style referencing `"{!v=$query_name}"` picks only the first element in array ignoring everything beyond, e.g., if one changes the reference below from `"{!v=$electronic}"` to `"{!v=$manufacturers}"` it's equivalent to querying for `manu:apple`, ignoring the later query. These queries don't impact query result unt [...]
+Multiple additional queries might be specified under `queries` key with all syntax alternatives described above. Every entry might have multiple values in array. To reference these queries one can use `{"param":"query_name"}`, as well as old-style referencing `"{!v=$query_name}"`. Beware of arity for these references. Depending on the context, a reference might be resolved into the first element in array ignoring the later elements, e.g., if one changes the reference below from `{"param" [...]
[source,bash]
----
@@ -354,7 +354,7 @@ curl -X POST http://localhost:8983/solr/techproducts/query -d '
{"field": {"f":"manu", "query":"belkin"}}
]
},
- "query":"{!v=$electronic}"
+ "query":{"param":"electronic"}
}'
----