[
https://issues.apache.org/jira/browse/SOLR-14419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112171#comment-17112171
]
Mikhail Khludnev commented on SOLR-14419:
-----------------------------------------
bq. It will be nice if paramValue is a JsonObject, then recurisve dependency
will be a problem.
I'm a little bit lost.. So, these refs might refer to objects in Query DSL like
in the patch
{code}
+ );// referencing dsl&strings from filters objs&array
+ client.testJQ(
params("json.filter","{param:fq1}","json.filter","{param:fq2}",
+ "json", random().nextBoolean() ?
+ "{queries:{fq1:{lucene:{query:'cat_s:A'}},
fq2:{lucene:{query:'where_s:NY'}}}}" :
{code}
But, as I told there shouldn't be a problem with recursion.
bq. Then how the tranditional local params solve that problem?
Single quotes escapes $.
{code}
"rawquerystring":"{!v='$foo'}",
"querystring":"{!v='$foo'}",
"parsedquery":"+content:foo",
"parsedquery_toString":"+content:foo",
{code}
> Query DLS {"param":"ref"}
> -------------------------
>
> Key: SOLR-14419
> URL: https://issues.apache.org/jira/browse/SOLR-14419
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: JSON Request API
> Reporter: Mikhail Khludnev
> Assignee: Mikhail Khludnev
> Priority: Major
> Fix For: 8.6
>
> Attachments: SOLR-14419.patch, SOLR-14419.patch, SOLR-14419.patch
>
>
> What we can do with plain params:
> {{q=\{!parent which=$prnts}...&prnts=type:parent}}
> obviously I want to have something like this in Query DSL:
> {code}
> { "query": { "parents":{ "which":{"param":"prnts"}, "query":"..."}}
> "params": {
> "prnts":"type:parent"
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]