docs/mappings/index-settings.json
changeset 14 b20c1022db17
child 81 6c2715230d09
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/mappings/index-settings.json	Wed Jul 12 12:01:24 2017 +0200
@@ -0,0 +1,74 @@
+{
+	"settings": {
+		"analysis": {
+			"tokenizer": {
+				"nGram": {
+					"type": "nGram",
+					"min_gram": 3,
+					"max_gram": 20
+				}
+			},
+			"filter": {
+				"snowball_fr": {
+					"type": "snowball",
+					"language": "French"
+				},
+				"elision_fr": {
+					"type": "elision",
+					"articles": [
+						"l",
+						"m",
+						"t",
+						"qu",
+						"n",
+						"s",
+						"j",
+						"d",
+						"c",
+						"jusqu",
+						"quoiqu",
+						"lorsqu",
+						"puisqu"
+					]
+				},
+				"stop_fr": {
+					"type": "stop",
+					"stopwords": "_french_",
+					"ignore_case": true
+				},
+				"stemmer_fr": {
+					"type": "stemmer",
+					"language": "light_french"
+				}
+			},
+			"analyzer": {
+				"french": {
+					"type": "custom",
+					"tokenizer": "nGram",
+					"filter": [
+						"stop_fr",
+						"asciifolding",
+						"lowercase",
+						"snowball_fr",
+						"elision_fr",
+						"stemmer_fr",
+						"word_delimiter"
+					]
+				},
+				"french_search": {
+					"type": "custom",
+					"tokenizer": "standard",
+					"filter": [
+						"stop_fr",
+						"asciifolding",
+						"lowercase",
+						"snowball_fr",
+						"elision_fr",
+						"stemmer_fr",
+						"word_delimiter"
+					]
+				}
+			}
+		}
+	}
+}