How to specify analyser to use

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/ 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

HTH

Le 31 janv. 2013 à 09:31, JD 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 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.
For more options, visit https://groups.google.com/groups/opt_out.

Yes.

Do

curl 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 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.