# Filtering by multiple rows

**URL:** <https://discuss.elastic.co/t/filtering-by-multiple-rows/268594>\
**Category:** Elasticsearch\
**Created:** [March 28, 2021, 3:31pm UTC](https://discuss.elastic.co/t/filtering-by-multiple-rows/268594 "2021-03-28T15:31:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinevans](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevinevans/32/86200_2.png) [@kevinevans](https://discuss.elastic.co/u/kevinevans)\
**Post date:** [March 28, 2021, 3:31pm UTC](https://discuss.elastic.co/t/filtering-by-multiple-rows/268594/1 "2021-03-28T15:31:11Z")

</div>

I'm pretty new to ES, so this might be an obvious question.

I have an index that contains rows of (`field_id`, `value`, `company_id`) where `field_id` describes what kind of data `value` represents. I'd like to create a filtering system where I'm able to filter by multiple `value` ranges for any number of `field_id` values, then just return a list of distinct `company_id`s. Sort of like if you're using Yelp (or Airbnb), you can select multiple filters to really narrow down the results. Is this possible with Elastic Search?

---

<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:** [April 25, 2021, 3:31pm UTC](https://discuss.elastic.co/t/filtering-by-multiple-rows/268594/2 "2021-04-25T15:31:26Z")

</div>

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