# Is index\_prefixes intended to be used with text fields only?

**URL:** https://discuss.elastic.co/t/is-index-prefixes-intended-to-be-used-with-text-fields-only/292366
**Category:** Elasticsearch
**Created:** [December 17, 2021, 11:07pm UTC](https://discuss.elastic.co/t/is-index-prefixes-intended-to-be-used-with-text-fields-only/292366 "2021-12-17T23:07:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mp3000](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@mp3000](https://discuss.elastic.co/u/mp3000)
#### Post date: [December 17, 2021, 11:07pm UTC](https://discuss.elastic.co/t/is-index-prefixes-intended-to-be-used-with-text-fields-only/292366/1 "2021-12-17T23:07:31Z")

</div>

Hello,

It seems `index_prefixes` mapping parameter is only available for `text` fields but it is not really obvious in the doc.

Why this parameter is not available for `keyword` fields ?  
Is it because the performance on small texts would be minor (while the indexing cost is real) ?

If yes, should we specify it in the doc like for `index_options` mapping parameter ?

Thanks

---

<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: [January 14, 2022, 11:08pm UTC](https://discuss.elastic.co/t/is-index-prefixes-intended-to-be-used-with-text-fields-only/292366/2 "2022-01-14T23:08:28Z")

</div>

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