# Filter on nested field

**URL:** <https://discuss.elastic.co/t/filter-on-nested-field/283697>\
**Category:** Elasticsearch\
**Created:** [September 8, 2021, 5:08pm UTC](https://discuss.elastic.co/t/filter-on-nested-field/283697 "2021-09-08T17:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dgastudio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dgastudio/32/90362_2.png) [@dgastudio](https://discuss.elastic.co/u/dgastudio)\
**Post date:** [September 8, 2021, 5:32pm UTC](https://discuss.elastic.co/t/filter-on-nested-field/283697/3 "2021-09-08T17:32:20Z")

</div>

Hello Dan!  
First of all, thank you for your response.

My requirement is to show all the users, but filter shifts.

i have tried to filter on 2 indices [Filter on 2 indices](https://discuss.elastic.co/t/filter-on-2-indices/282098)

but it doesnt work

so, basically, my requirement is:

show users and shifts on same page

and filter data by both doc types

example of ui

> **[monosnap.com](https://monosnap.com/file/9Ntd1PQNLfkROllpvYOxWg0a3hVFXn)**
>
> Monosnap screenshot tool for Mac and PC with own cloud storage. Take screenshots, record videos and upload files directly to the cloud. Just in one click.

---

_[View the full topic](https://discuss.elastic.co/t/filter-on-nested-field/283697)._
