# Elasticsearch Hadoop - Analyzer support

**URL:** <https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [March 23, 2022, 5:51am UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404 "2022-03-23T05:51:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shalini\_Pereira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalini_pereira/32/103353_2.png) [@Shalini\_Pereira](https://discuss.elastic.co/u/Shalini_Pereira)\
**Post date:** [March 23, 2022, 5:51am UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404/1 "2022-03-23T05:51:18Z")

</div>

Does es-hadoop maven dependency have support for built-in analyzers? I am setting up a project to read & write data from Elasticsearch using spark and have created simple analyzers on index but need more help on this further.

Any help is appreciated, Thanks!

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [March 23, 2022, 1:26pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404/2 "2022-03-23T13:26:20Z")

</div>

Hi @Shalini_Pereira. I'm not completely sure I understand your question. I'm assuming you are using a non-default analyzer, and that you have specified it in your index mapping (or template). In that case, whenever you index a document (whether through es-hadoop or the index API), your analyzer is applied to the document on the Elasticsearch side. There is nothing you need to do on the es-hadoop side. Does that answer your question? Or are you wanting to specify an analyzer when you are reading data out with es-hadoop?

---

<div class="post-metadata">

**Author:** ![Shalini\_Pereira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shalini_pereira/32/103353_2.png) [@Shalini\_Pereira](https://discuss.elastic.co/u/Shalini_Pereira)\
**Post date:** [March 27, 2022, 7:56pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404/3 "2022-03-27T19:56:33Z")

</div>

> [@Keith\_Massey](#):
>
> index

Hi @Keith_Massey,  
Thank you for the quick response!

I am using a built-in analyzer such as keyword or whitespace analyzer which is added to the index settings. Just wanted clarification on whether any option is to be passed when using the es-hadoop dependency or the created analyzer will be used by default by es-hadoop during read.

Any help is appreciated, Thanks!

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [March 28, 2022, 1:14pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404/4 "2022-03-28T13:14:31Z")

</div>

If it is in the index settings, it will be used by Elasticsearch. You do not need to pass any arguments to es-hadoop. You can confirm by posting a document through the REST API ([Index API | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html)). If your analyzer is used there, it will be used by es-hadoop.

---

<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:** [April 25, 2022, 1:14pm UTC](https://discuss.elastic.co/t/elasticsearch-hadoop-analyzer-support/300404/5 "2022-04-25T13:14:57Z")

</div>

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