Hi,
I am new to elastic search. So guys, could you please let me know the answer for the below question:
How do we know the list of analyzer(s) applied on the particular document?
Hi,
I am new to elastic search. So guys, could you please let me know the answer for the below question:
How do we know the list of analyzer(s) applied on the particular document?
@chandu Analyzers are defined at an index level via an index setting (and example update of that setting is here) and/or a field mapping. If no analyzer is defined, the default standard analyzer is used for text
fields.
So, you can view the list of defined analyzers by viewing the index mapping:
GET /twitter/_mapping/tweet
Again, if you have text fields and haven't explicitly set an analyzer, it'll use the default. Should also mention that this is for 5.0. In 4.0 you have string
fields which can be set to "not analyzed" (see the note here)
Thank you Mike.
But, we are using elastic search version 1.3.2.
What could be the process to see the list of Analyzers in the case of 1.3.2.
it would be the same, just that there is a way to disable analyzers on string
fields, which no longer exist for newly created indices in 5.x
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.