# How can text field works with both query, filter, facet, sorting,

**URL:** <https://discuss.elastic.co/t/how-can-text-field-works-with-both-query-filter-facet-sorting/284365>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [September 16, 2021, 7:04am UTC](https://discuss.elastic.co/t/how-can-text-field-works-with-both-query-filter-facet-sorting/284365 "2021-09-16T07:04:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominique.bejean](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dominique.bejean](https://discuss.elastic.co/u/dominique.bejean)\
**Post date:** [September 16, 2021, 7:04am UTC](https://discuss.elastic.co/t/how-can-text-field-works-with-both-query-filter-facet-sorting/284365/1 "2021-09-16T07:04:12Z")

</div>

Hi,

How can a text field work with both query and filter, facet, sorting ?

Query usually works with tokenized/analyzed fields while filter, facet, sorting requiere untokenized fields (elasticsearch keyword)

Is there a under the hood double indexation as keyword ?

Regards

Dominique

---

<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:** [October 14, 2021, 7:04am UTC](https://discuss.elastic.co/t/how-can-text-field-works-with-both-query-filter-facet-sorting/284365/2 "2021-10-14T07:04:15Z")

</div>

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