Thursday 15 March 2012

elasticsearch - How to exclude a filter from a facet? -


I came from a solar background and am trying to find the equivalent of Elslasschurch.

The following example, how can I exclude value filter from the calculation of values ​​ facet? In other words, all filters except value aspect should be kept in mind except value . {"Match_all": {}}, "filter": {"and": [{"word": {"color": "red" } "," "": {"Feature": "square"}}, {"word": {"feature": "shiny"}}, {"category": {"value": {"with": "" "{" Word ": {" word ": {" field ": {" field ":" color "}}," attributes ": {" terms ": {" field "" Value ": {" statistical ": {" field ":" value "}}}}

You can apply a price filter to your query as a top level filter and add it to all aspects such as And "facet_filter":

  {query: {"filtered": {{"Match_all": {} match_all: {}}, "filter": {"and": [{"word": {"Word": {"feature": "bright"}}}}}}, "facet": {"color": "red"}}, {"term": {"feature": "square"}}, {"word" : {"Color": {"field": "color"}, "facet_filter": {"category": {"value": {"to": "10", "to": "20"}}}} , "To": "20" "" {"" ":" to "," to "," to "," to "," attribute ": {" field ":" feature "}," facet_filter ": {" category ": {" value " Field ":" value "}}}," filter ": {" category ": {" value ": {" with ":" 10 "," ":" 20 "}}}}    

No comments:

Post a Comment