{ "template": "phabricator", "settings": { "analysis": { "filter": { "trigrams_filter": { "type": "ngram", "min_gram": 3, "max_gram": 3 }, "french_elision": { "type": "elision", "articles": [ "l", "m", "t", "qu", "n", "s", "j", "d", "c", "jusqu", "quoiqu", "lorsqu", "puisqu" ] }, "french_stop": { "type": "stop", "stopwords": "_french_" }, "french_stemmer": { "type": "stemmer", "language": "french" } }, "analyzer": { "french_no_trigrams": { "type": "custom", "tokenizer": "standard", "filter": [ "french_elision", "lowercase", "french_stop", "french_stemmer" ] }, "french_trigrams": { "type": "custom", "tokenizer": "standard", "filter": [ "french_elision", "lowercase", "french_stop", "french_stemmer", "trigrams_filter" ] } } } }, "mappings": { "PROJ": { "properties": { "field": { "properties": { "corpus": { "type": "string", "analyzer": "french_trigrams" } } } } }, "TASK": { "properties": { "field": { "properties": { "corpus": { "type": "string", "analyzer": "french_trigrams" } } } } }, "USER": { "properties": { "field": { "properties": { "corpus": { "type": "string", "analyzer": "french_no_trigrams" } } } } } } }