# How to set the default analyzer

**URL:** <https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452>\
**Category:** Elasticsearch\
**Created:** [April 24, 2012, 1:30pm UTC](https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452 "2012-04-24T13:30:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinusp](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@thinusp](https://discuss.elastic.co/u/thinusp)\
**Post date:** [April 24, 2012, 1:30pm UTC](https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452/1 "2012-04-24T13:30:15Z")

</div>

Hey all,

Sorry to bug you with such a stupid question, but I've been trying  
everything... I need to set the default analyzer for an index, so that when  
new "columns" are added dynamically, they will use the default analyzer.  
The website suggests this is possible:

An analyzer is registered under a logical name. It can then be referenced  
from mapping definitions or certain APIs. When none are defined, defaults  
are used. There is an option to define which analyzers will be used by  
default when none can be derived.

The default logical name allows one to configure an analyzer that will be  
used both for indexing and for searching APIs. The default\_index logical  
name can be used to configure a default analyzer that will be used just  
when indexing, and the default\_search can be used to configure a default  
analyzer that will be used just when searching.

This is exactly what I want to do... Now, I've tried setting every  
possible combination of the following:

index.analysis.analyzer.default: snowball  
index.analyzer.default: snowball  
index.analysis.default: snowball  
etc.

Can someone please point me towards the correct way of doing this?

Thank you kindly. Regards,  
Thinus

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [April 24, 2012, 1:44pm UTC](https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452/2 "2012-04-24T13:44:17Z")

</div>

It should be index.analysis.analyzer.default._type_: snowball

On Tuesday, April 24, 2012 9:30:15 AM UTC-4, Thinus Prinsloo wrote:

> Hey all,
> 
> Sorry to bug you with such a stupid question, but I've been trying  
> everything... I need to set the default analyzer for an index, so that when  
> new "columns" are added dynamically, they will use the default analyzer.  
> The website suggests this is possible:
> 
> An analyzer is registered under a logical name. It can then be referenced  
> from mapping definitions or certain APIs. When none are defined, defaults  
> are used. There is an option to define which analyzers will be used by  
> default when none can be derived.
> 
> The default logical name allows one to configure an analyzer that will be  
> used both for indexing and for searching APIs. The default\_index logical  
> name can be used to configure a default analyzer that will be used just  
> when indexing, and the default\_search can be used to configure a default  
> analyzer that will be used just when searching.
> 
> This is exactly what I want to do... Now, I've tried setting every  
> possible combination of the following:
> 
> index.analysis.analyzer.default: snowball  
> index.analyzer.default: snowball  
> index.analysis.default: snowball  
> etc.
> 
> Can someone please point me towards the correct way of doing this?
> 
> Thank you kindly. Regards,  
> Thinus

---

<div class="post-metadata">

**Author:** ![thinusp](https://avatars.discourse-cdn.com/v4/letter/t/da6949/32.png) [@thinusp](https://discuss.elastic.co/u/thinusp)\
**Post date:** [April 24, 2012, 1:46pm UTC](https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452/3 "2012-04-24T13:46:45Z")

</div>

Igor,

You hare my hero for today. Thank you so much.

Regards,  
Thinus

On Tue, Apr 24, 2012 at 3:44 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:

> It should be index.analysis.analyzer.default._type_: snowball
> 
> On Tuesday, April 24, 2012 9:30:15 AM UTC-4, Thinus Prinsloo wrote:
> 
> > Hey all,
> > 
> > Sorry to bug you with such a stupid question, but I've been trying  
> > everything... I need to set the default analyzer for an index, so that when  
> > new "columns" are added dynamically, they will use the default analyzer.  
> > The website suggests this is possible:
> > 
> > An analyzer is registered under a logical name. It can then be referenced  
> > from mapping definitions or certain APIs. When none are defined, defaults  
> > are used. There is an option to define which analyzers will be used by  
> > default when none can be derived.
> > 
> > The default logical name allows one to configure an analyzer that will  
> > be used both for indexing and for searching APIs. The default\_index logical  
> > name can be used to configure a default analyzer that will be used just  
> > when indexing, and the default\_search can be used to configure a default  
> > analyzer that will be used just when searching.
> > 
> > This is exactly what I want to do... Now, I've tried setting every  
> > possible combination of the following:
> > 
> > index.analysis.analyzer.\*\*default: snowball  
> > index.analyzer.default: snowball  
> > index.analysis.default: snowball  
> > etc.
> > 
> > Can someone please point me towards the correct way of doing this?
> > 
> > Thank you kindly. Regards,  
> > Thinus

--  
_Thinus Prinsloo_  
_E-mail:_ [thinus.prinsloo@gmail.com](mailto:thinus.prinsloo@gmail.com)  
_Cell:_ +27 82 339 2226

---

<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:31am UTC](https://discuss.elastic.co/t/how-to-set-the-default-analyzer/7452/4 "2017-07-06T03:31:15Z")

</div>


