similar to standard analyzer
split text into tokens when encountering anything else than letters
lowercases letters
no-op analyzer that leaves the text intact
used for keyword field by default
ex) english analyzer
ex) using english analyzer
PUT /products
{
"mappings" : {
"properties" : {
"description" : {
"type" : "text",
"analyzer" : "english"
}
}
}
}
ex) adding stopwords filter to standard analyzer
PUT /products
{
"settings" : {
"analyzer" : {
"remove_english_stop_words" : {
"type" : "standard",
"stopwords" : "_english_"
}
}
}
}
PUT /analyzer_test
{
"settings" : {
"analysis" : {
"filter" : {
"danish_stop" : {
"type" : "stop",
"stopwords" : "_danish_"
}
},
"char_filter" : {},
"tokenizer" : {},
"analyzer" : {
"my_custom_analyzer" : {
"type" : "custom",
"char_filter" : ["html_strip"],
"tokenizer" : "standard",
"filter" : ["lowercase", "danish_stop", "asciifolding"]
}
}
}
}
}