| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | [[analysis-analyzers]]== AnalyzersAnalyzers are composed of a single <<analysis-tokenizers,Tokenizer>> and zero or more <<analysis-tokenfilters,TokenFilters>>. The tokenizer may be preceded by one or more <<analysis-charfilters,CharFilters>>.The analysis module allows you to register `Analyzers` under logicalnames which can then be referenced either in mapping definitions or incertain APIs. Elasticsearch comes with a number of prebuilt analyzers which areready to use.  Alternatively, you can combine the built incharacter filters, tokenizers and token filters to create <<analysis-custom-analyzer,custom analyzers>>.[float][[default-analyzers]]=== Default AnalyzersAn analyzer is registered under a logical name. It can then bereferenced from mapping definitions or certain APIs. When none aredefined, defaults are used. There is an option to define which analyzerswill be used by default when none can be derived.The `default` logical name allows one to configure an analyzer that willbe used both for indexing and for searching APIs. The `default_index`logical name can be used to configure a default analyzer that will beused just when indexing, and the `default_search` can be used toconfigure a default analyzer that will be used just when searching.[float][[aliasing-analyzers]]=== Aliasing AnalyzersAnalyzers can be aliased to have several registered lookup namesassociated with them. For example, the following will allow the `standard` analyzer to also be referenced with `alias1`and `alias2` values.[source,js]--------------------------------------------------index :  analysis :    analyzer :      standard :        alias: [alias1, alias2]        type : standard        stopwords : [test1, test2, test3]--------------------------------------------------Below is a list of the built in analyzers.include::analyzers/standard-analyzer.asciidoc[]include::analyzers/simple-analyzer.asciidoc[]include::analyzers/whitespace-analyzer.asciidoc[]include::analyzers/stop-analyzer.asciidoc[]include::analyzers/keyword-analyzer.asciidoc[]include::analyzers/pattern-analyzer.asciidoc[]include::analyzers/lang-analyzer.asciidoc[]include::analyzers/snowball-analyzer.asciidoc[]include::analyzers/custom-analyzer.asciidoc[]
 |