# How to specify analyser to use

**URL:** https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568
**Category:** Elasticsearch
**Created:** [January 31, 2013, 8:31am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568 "2013-01-31T08:31:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 31, 2013, 8:31am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568/1 "2013-01-31T08:31:53Z")

</div>

Hi,

How can I:

1. 

```
 check which analyser is used for my indexing – I have not specified 

```

any when I indexed my documents.

1. 

```
 specify which analyser is used for my indexing – I know the doc 

```

specify at url  
[http://www.elasticsearch.org/guide/reference/index-modules/analysis/](http://www.elasticsearch.org/guide/reference/index-modules/analysis/) the  
sample configuration – but what is this configuration? – a text file? And  
if it is where do I put it under elasticsearch root directory. If it is not  
a config file what command do I use to specify which analyser I want to use?

Regards,  
Janusz

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 31, 2013, 8:42am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568/2 "2013-01-31T08:42:28Z")

</div>

By default, the standard analyzer is applied.  
If you want to apply another one, you have to define a mapping.

See the Put Mapping API.

Here is an example: [Test case for multifield fields · GitHub](https://gist.github.com/2965777)

HTH

Le 31 janv. 2013 à 09:31, JD [jdalecki@tycoint.com](mailto:jdalecki@tycoint.com) a écrit :

> Hi,
> 
> How can I:
> 
> 1. 
> 
> ```
> check which analyser is used for my indexing – I have not specified any when I indexed my documents.
> 
> ```
> 
> 2. 
> 
> ```
> specify which analyser is used for my indexing – I know the doc specify at url http://www.elasticsearch.org/guide/reference/index-modules/analysis/ the sample configuration – but what is this configuration? – a text file? And if it is where do I put it under elasticsearch root directory. If it is not a config file what command do I use to specify which analyser I want to use?
> 
> ```
> 
> Regards,
> 
> Janusz
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Janusz\_Dalecki](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Janusz\_Dalecki](https://discuss.elastic.co/u/Janusz_Dalecki)
#### Post date: [January 31, 2013, 9:04am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568/3 "2013-01-31T09:04:29Z")

</div>

Hi Dave,  
Can I somehow see that it is standard analyzer - using some curl command?  
Not that I don't trust you - I just would like to know the method to verify  
it?  
Regards,  
Janusz

On Thursday, 31 January 2013 19:31:53 UTC+11, JD wrote:

> Hi,
> 
> How can I:
> 
> 1. 
> 
> ```
> check which analyser is used for my indexing – I have not 
> 
> ```
> 
> specified any when I indexed my documents.
> 
> 1. 
> 
> ```
> specify which analyser is used for my indexing – I know the doc 
> 
> ```
> 
> specify at url  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/) the  
> sample configuration – but what is this configuration? – a text file? And  
> if it is where do I put it under elasticsearch root directory. If it is not  
> a config file what command do I use to specify which analyser I want to use?
> 
> Regards,  
> Janusz

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 31, 2013, 9:09am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568/4 "2013-01-31T09:09:31Z")

</div>

Yes.

Do

curl [http://localhost:9200/index/type/\_mapping?pretty](http://localhost:9200/index/type/_mapping?pretty)

You will get your mapping. If no analyzer is defined, then standard is applied.

BTW, if you want to understand how Elasticsearch analyzed your data, have a look at the \_analyze API. Very useful.

Le 31 janv. 2013 à 10:04, JD [jdalecki@tycoint.com](mailto:jdalecki@tycoint.com) a écrit :

> Hi Dave,  
> Can I somehow see that it is standard analyzer - using some curl command?  
> Not that I don't trust you - I just would like to know the method to verify it?  
> Regards,  
> Janusz
> 
> On Thursday, 31 January 2013 19:31:53 UTC+11, JD wrote:  
> Hi,
> 
> How can I:
> 
> 1. 
> 
> ```
> check which analyser is used for my indexing – I have not specified any when I indexed my documents.
> 
> ```
> 
> 2. 
> 
> ```
> specify which analyser is used for my indexing – I know the doc specify at url http://www.elasticsearch.org/guide/reference/index-modules/analysis/ the sample configuration – but what is this configuration? – a text file? And if it is where do I put it under elasticsearch root directory. If it is not a config file what command do I use to specify which analyser I want to use?
> 
> ```
> 
> Regards,
> 
> Janusz
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:53am UTC](https://discuss.elastic.co/t/how-to-specify-analyser-to-use/10568/5 "2017-07-06T02:53:48Z")

</div>


