# Document not being found in alias

**URL:** <https://discuss.elastic.co/t/document-not-being-found-in-alias/21493>\
**Category:** Elasticsearch\
**Created:** [January 5, 2015, 10:54pm UTC](https://discuss.elastic.co/t/document-not-being-found-in-alias/21493 "2015-01-05T22:54:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefanie](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Stefanie](https://discuss.elastic.co/u/Stefanie)\
**Post date:** [January 5, 2015, 10:54pm UTC](https://discuss.elastic.co/t/document-not-being-found-in-alias/21493/1 "2015-01-05T22:54:21Z")

</div>

I have a document that is not being found when I run an alias but is being  
found if I run the filters on the index. Is there anything that could be  
causing this?

I have two mappings in this index, the records from one of the mappings has  
no problem being found but records from the other mapping are not being  
included.

My alias looks something like this:

- index\_name:  
{
  - aliases:  
{
    - alias\_name:  
{
      - filter:  
{
        - terms:  
{
          - term\_id:  
[
            - 127,
            - 102,
            - 128  
]  
}  
}  
}  
}  
}

Thank you,  
Stefanie

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d2ab941f-6fa9-41f3-a1df-e8f26e4e48d0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d2ab941f-6fa9-41f3-a1df-e8f26e4e48d0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:40am UTC](https://discuss.elastic.co/t/document-not-being-found-in-alias/21493/2 "2017-07-06T00:40:41Z")

</div>


