migrating index settings to ES 5: removed wordending, using edge_ngram tokenizer
{
- "similarity": {
- "default": {
- "type": "BM25"
- }
+ "analysis":
+ {
+ "analyzer":
+ {
+ "index_ngram":
+ {
+ "tokenizer": "edge_ngram",
+ "filter": ["lowercase"]
},
- "analysis": {
- "analyzer": {
- "index_ngram": {
- "char_filter": ["punctuationgreedy"],
- "filter": ["word_delimiter", "lowercase", "asciifolding", "unique", "wordending", "photonngram"],
- "tokenizer": "standard"
+ "search_ngram":
+ {
+ "tokenizer": "lowercase"
},
- "search_ngram": {
+ "index_raw":
+ {
"char_filter": ["punctuationgreedy"],
- "filter": ["word_delimiter", "lowercase", "asciifolding", "unique", "wordendingautocomplete"],
+ "filter":
+ [
+ "word_delimiter",
+ "lowercase",
+ "asciifolding",
+ "unique"
+ ],
"tokenizer": "standard"
},
- "index_raw": {
+ "search_raw":
+ {
"char_filter": ["punctuationgreedy"],
- "filter": ["word_delimiter", "lowercase", "asciifolding", "unique"],
+ "filter":
+ [
+ "word_delimiter",
+ "lowercase",
+ "asciifolding",
+ "unique"
+ ],
"tokenizer": "standard"
+ }
},
- "search_raw": {
- "char_filter": ["punctuationgreedy"],
- "filter": ["word_delimiter", "lowercase", "asciifolding", "unique"],
- "tokenizer": "standard"
+ "tokenizer":
+ {
+ "edge_ngram":
+ {
+ "type": "edge_ngram",
+ "min_gram": 1,
+ "max_gram": 100,
+ "token_chars": ["letter"]
}
},
- "char_filter": {
- "punctuationgreedy": {
+ "char_filter":
+ {
+ "punctuationgreedy":
+ {
"type": "pattern_replace",
"pattern": "[\\.,]"
}
},
- "filter": {
- "photonngram": {
- "min_gram": "1",
- "type": "edgeNGram",
- "max_gram": "100"
- },
- "wordending": {
- "type": "wordending",
- "mode": "default"
- },
- "photonlength": {
+ "filter":
+ {
+ "photonlength":
+ {
"min": "2",
"type": "length"
- },
- "wordendingautocomplete": {
- "type": "wordending",
- "mode": "autocomplete"
}
}
}
