# Use custom analyzer in search query on selected fields only

**URL:** <https://discuss.elastic.co/t/use-custom-analyzer-in-search-query-on-selected-fields-only/341693>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-sql\
**Created:** [August 25, 2023, 1:25pm UTC](https://discuss.elastic.co/t/use-custom-analyzer-in-search-query-on-selected-fields-only/341693 "2023-08-25T13:25:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aniket\_mandhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aniket_mandhare/32/122986_2.png) [@aniket\_mandhare](https://discuss.elastic.co/u/aniket_mandhare)\
**Post date:** [August 25, 2023, 1:25pm UTC](https://discuss.elastic.co/t/use-custom-analyzer-in-search-query-on-selected-fields-only/341693/1 "2023-08-25T13:25:23Z")

</div>

I want to apply a custom analyzer to selected fields only in a search query without having to modify the field mappings. And also don't want to add subfield while mapping.

---

<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:** [September 22, 2023, 1:25pm UTC](https://discuss.elastic.co/t/use-custom-analyzer-in-search-query-on-selected-fields-only/341693/2 "2023-09-22T13:25:41Z")

</div>

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