[
https://issues.apache.org/jira/browse/SOLR-12490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926538#comment-16926538
]
Mikhail Khludnev edited comment on SOLR-12490 at 12/23/19 1:32 PM:
-------------------------------------------------------------------
-I think we'd rather continue with adding yet another small cut.-
{code:java}
{
"query" : {...},
"params":{
"childFq":[{ "#color" :"color:black" },
{ "#size" : "size:L" }]
},
"facet":{
"sku_colors_in_prods":{ "type" : "terms", "field" : "color",
"domain" : {
"excludeTags":["top", "color"],
"filter":[
"{!json_param}childFq"
]
}
}
}
}
{code}
-Ideas are:-
* -put json as param value, parser garbles it to meaningless string, but it's
still available via {{req.getJSON()}}.-
* -filter string invokes new query parser which convert json param as query
DSL, need to decide how to keep {{JsonQueryConverter}} counter.-
-Shouldn't be a big deal. Right?-
was (Author: mkhludnev):
I think we'd rather continue with adding yet another small cut.
{code}
{
"query" : {...},
"params":{
"childFq":[{ "#color" :"color:black" },
{ "#size" : "size:L" }]
},
"facet":{
"sku_colors_in_prods":{ "type" : "terms", "field" : "color",
"domain" : {
"excludeTags":["top", "color"],
"filter":[
"{!json_param}childFq"
]
}
}
}
}
{code}
Ideas are:
* put json as param value, parser garbles it to meaningless string, but it's
still available via {{req.getJSON()}}.
* filter string invokes new query parser which convert json param as query DSL,
need to decide how to keep {{JsonQueryConverter}} counter.
Shouldn't be a big deal. Right?
> Query DSL supports for further referring and exclusion in JSON facets
> ----------------------------------------------------------------------
>
> Key: SOLR-12490
> URL: https://issues.apache.org/jira/browse/SOLR-12490
> Project: Solr
> Issue Type: Improvement
> Components: Facet Module, faceting
> Reporter: Mikhail Khludnev
> Priority: Major
> Labels: newdev
> Attachments: SOLR-12490.patch, SOLR-12490.patch,
> image-2019-10-21-09-37-37-118.png
>
>
> It's spin off from the
> [discussion|https://issues.apache.org/jira/browse/SOLR-9685?focusedCommentId=16508720&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16508720].
>
> h2. Problem
> # after SOLR-9685 we can tag separate clauses in hairish queries like
> {{parent}}, {{bool}}
> # we can {{domain.excludeTags}}
> # we are looking for child faceting with exclusions, see SOLR-9510, SOLR-8998
>
> # but we can refer only separate params in {{domain.filter}}, it's not
> possible to refer separate clauses
> see the first comment
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]