elasticsearch - Ignore filter on range aggregation -
Seats: 2- *, 4- *, 5- *, 7- *, 9- 9, * (I want to see how many stories of at least 5 seats are)
I have many aggregations on more bullian words like:
< Li> Natural gasIf I apply allocation of aircans to everything well: "Aggregation": {"Price_ranges": {"buckets": ["5,000", "doc_count": 2}, {"to": 5000, "to": 10000, " Doc_count ": 4}, {" to ": 10000," doc_count ": 4}]}}
But suppose I apply a price filter between 5000 and 10000 in the main query I am Now the other values are (right) void, because they only apply to the recovered documents. "Aggregation": {"price_ranges": {"bucket": [{"to": 50, "doc_count": 0}, {"to": 50, "to": 100, "doc_count": 4}, {"to": 100, "doc_count":}}}
Question:
- Even the total examples are in the form of the first example (2, 4, 4), even though I'm filtering the cost without the creation / execution of the second query?
- Even after making several queries, I have to make a separate call with all filters besides receiving the price. Price ranges for all cars as Q1 , And except for the seats, with the all filters, the second one (ie value) is there any way around this to show those values as necessary?
Comments
Post a Comment