[
https://issues.apache.org/jira/browse/SOLR-14419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112869#comment-17112869
]
Mikhail Khludnev commented on SOLR-14419:
-----------------------------------------
[~caomanhdat], I might not fully understand your point. Do you expect to put
DSL objects into {{json.param}} like
{code}
{
"param":{
"q1" : {"lucene":{"query":"foo"}}
}
}
{code} ?
I've found it unreachable in SOLR-12490 and introduced "json.queries".
Ok. Here is a sample spinet for facet exclusion and nested docs facets:
{code}
q=*:*&prnts=content_type:parentDocument&
fq={!parent tag=sku_filters which=$prnts filters=$sku_fqs}& // two refs, would
be nice to express in DSL
sku_fqs={!tag=sku_attr1_tag}sku_attr1:foo&
sku_fqs={!tag=sku_attr2_tag}sku_attr2:bar&
json.facet={
"sku_attr1":{
"type":"terms",
"field":"sku_attr1",
"limit":-1,
"domain": {
"excludeTags":"sku_filters", // drop top level
{!parent
"blockChildren":"{!v=$prnts}",
"filter": // $sku_fqs
refers many params that's not how it works by default
"{!filters param=$sku_fqs
excludeTags=sku_attr1_tag}"
},
"facet": {
"by_parent":"uniqueBlock(_root_)"
}
},
/// "sku_attr2":{ ... etc
}
{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]