# Term Filter

**URL:** <https://discuss.elastic.co/t/term-filter/5387>\
**Category:** Elasticsearch\
**Created:** [September 15, 2011, 11:12am UTC](https://discuss.elastic.co/t/term-filter/5387 "2011-09-15T11:12:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [September 15, 2011, 11:12am UTC](https://discuss.elastic.co/t/term-filter/5387/1 "2011-09-15T11:12:04Z")

</div>

Hi,

Can I used analysed fields with term filter or only non-analysed?

Best Regards,

David.

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [September 16, 2011, 2:01pm UTC](https://discuss.elastic.co/t/term-filter/5387/2 "2011-09-16T14:01:06Z")

</div>

_Simple Answer_

For a term filter to drive correct results the field usually needs to be  
non-analyzed.

_Full Answer_

If you use a term filter on an analyzed field you would have to make sure  
that you provide a correctly analyzed term to the filter. This can sometimes  
make sense for fields that use a special analyzer that does not really do  
language processing. For example, you could have an analyzer that simply  
lowercases everything. You should be able to use a term filter on such a  
field provided you would do the lowercasing of the filter term on your side.

---

<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, 3:54am UTC](https://discuss.elastic.co/t/term-filter/5387/3 "2017-07-06T03:54:19Z")

</div>


