# Is it possible to use query.ids with other conditions such as should or must?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-use-query-ids-with-other-conditions-such-as-should-or-must/169587
**Category:** Elasticsearch
**Created:** [February 22, 2019, 1:56pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-query-ids-with-other-conditions-such-as-should-or-must/169587 "2019-02-22T13:56:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Raimon\_Bosch](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Raimon\_Bosch](https://discuss.elastic.co/u/Raimon_Bosch)
#### Post date: [February 22, 2019, 1:56pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-query-ids-with-other-conditions-such-as-should-or-must/169587/1 "2019-02-22T13:56:40Z")

</div>

Hi,

Is it possible to use query.ids in combination with other conditions such as should or must?

[https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html)

Thanks in advance,

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 22, 2019, 1:56pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-query-ids-with-other-conditions-such-as-should-or-must/169587/2 "2019-03-22T13:56:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
