docs/mappings/index-settings.json
changeset 14 b20c1022db17
child 81 6c2715230d09
equal deleted inserted replaced
13:81395a2919f5 14:b20c1022db17
       
     1 {
       
     2 	"settings": {
       
     3 		"analysis": {
       
     4 			"tokenizer": {
       
     5 				"nGram": {
       
     6 					"type": "nGram",
       
     7 					"min_gram": 3,
       
     8 					"max_gram": 20
       
     9 				}
       
    10 			},
       
    11 			"filter": {
       
    12 				"snowball_fr": {
       
    13 					"type": "snowball",
       
    14 					"language": "French"
       
    15 				},
       
    16 				"elision_fr": {
       
    17 					"type": "elision",
       
    18 					"articles": [
       
    19 						"l",
       
    20 						"m",
       
    21 						"t",
       
    22 						"qu",
       
    23 						"n",
       
    24 						"s",
       
    25 						"j",
       
    26 						"d",
       
    27 						"c",
       
    28 						"jusqu",
       
    29 						"quoiqu",
       
    30 						"lorsqu",
       
    31 						"puisqu"
       
    32 					]
       
    33 				},
       
    34 				"stop_fr": {
       
    35 					"type": "stop",
       
    36 					"stopwords": "_french_",
       
    37 					"ignore_case": true
       
    38 				},
       
    39 				"stemmer_fr": {
       
    40 					"type": "stemmer",
       
    41 					"language": "light_french"
       
    42 				}
       
    43 			},
       
    44 			"analyzer": {
       
    45 				"french": {
       
    46 					"type": "custom",
       
    47 					"tokenizer": "nGram",
       
    48 					"filter": [
       
    49 						"stop_fr",
       
    50 						"asciifolding",
       
    51 						"lowercase",
       
    52 						"snowball_fr",
       
    53 						"elision_fr",
       
    54 						"stemmer_fr",
       
    55 						"word_delimiter"
       
    56 					]
       
    57 				},
       
    58 				"french_search": {
       
    59 					"type": "custom",
       
    60 					"tokenizer": "standard",
       
    61 					"filter": [
       
    62 						"stop_fr",
       
    63 						"asciifolding",
       
    64 						"lowercase",
       
    65 						"snowball_fr",
       
    66 						"elision_fr",
       
    67 						"stemmer_fr",
       
    68 						"word_delimiter"
       
    69 					]
       
    70 				}
       
    71 			}
       
    72 		}
       
    73 	}
       
    74 }