[ 
https://issues.apache.org/jira/browse/SOLR-12490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Khludnev updated SOLR-12490:
------------------------------------
    Description: 
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

  was:
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

h2. {color:#ff0000}Revoked{color} -Proposal- 
pls see the first comment instead. 
# -tag child clauses multiple times-
{code}
{
    "query" : {
      "#top":{
          "parent": {
              "query": "sku-title:foo",
              "filters" : [
                  "scope:sku",
                  { "#sku,color" :  "color:black" }, // multiple tags
                  { "#sku,size" : "size:L" }
                ],
              "which": "scope:product"
           }
        }
    }
}
{code} 
# -refer to sku clauses, either by- 
## (1) {{domain.filter.tag}} -in addition to {{param}}, or-
## (2) {{domain.includeTags}} -mimicking- {{excludeTags}}  
{code}
"facet":{
  "sku_colors_in_prods":{
      "type" : "terms",
      "field" : "color",
       "domain" : {
          "excludeTags":["top","color"],   // we need to drop top-level parent 
query
          "filter":[ 
                      {"tag":"sku"}      // (1)
           ],
          "includeTags":"sku"      // (2)
       },
      "facet":"uniqueBlock(_root_)"
   }
}
{code}  
WDYT, [~osavrasov], [~ysee...@gmail.com]?






> referring/excluding clauses from JSON query DSL 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
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to