# Elastic Query for single field on multiple values

**URL:** https://discuss.elastic.co/t/elastic-query-for-single-field-on-multiple-values/272903
**Category:** Elasticsearch
**Created:** [May 13, 2021, 11:19am UTC](https://discuss.elastic.co/t/elastic-query-for-single-field-on-multiple-values/272903 "2021-05-13T11:19:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Divy\_Garg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divy_garg/32/79288_2.png) [@Divy\_Garg](https://discuss.elastic.co/u/Divy_Garg)
#### Post date: [May 13, 2021, 11:19am UTC](https://discuss.elastic.co/t/elastic-query-for-single-field-on-multiple-values/272903/1 "2021-05-13T11:19:10Z")

</div>

Hi,  
I am not able to come up with a solution how to implement this query. So if someone could help that will be great.

My doc looks something like this

`{ a: "val", b: "val1", c: "val3" }`

I want to get the results based on my field **a**. it can have multiple values like 1,2,3,4.....and so on.  
So for each possible value when querying i need to promise miminimum result set. Can someone guide on this? Let me know if more input is required in problem clarification.

---

<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: [June 10, 2021, 11:19am UTC](https://discuss.elastic.co/t/elastic-query-for-single-field-on-multiple-values/272903/2 "2021-06-10T11:19:25Z")

</div>

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