Let's say I wanted to determine which filters are relevant for a given query, ex: Amazon knows when I search 'graphics card' that the amount of GDDR5 ram would be a relevant filter for the left hand pane.
In Elasticsearch, I know there is Bucket Aggregations which sound like something that can do this, but I'm not sure how to code the JSON request.
Can you please give an example of how you could return the buckets for a given query?
Ex: GET /_search { "size": 0, "query": { "query_string" : { "query" : "graphics card" } }, "aggs":{ (I'm not sure) } }
Thanks!