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 gas

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

  1. 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?
  2. 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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -