docs/mappings/index-settings.json
changeset 81 6c2715230d09
parent 14 b20c1022db17
child 103 c1329f9be074
equal deleted inserted replaced
80:f691b998d91d 81:6c2715230d09
     1 {
     1 {
     2 	"settings": {
     2 	"settings": {
       
     3 		"index": {
       
     4 			"number_of_shards": 1,
       
     5 			"number_of_replicas": 1
       
     6 		},
     3 		"analysis": {
     7 		"analysis": {
     4 			"tokenizer": {
     8 			"tokenizer": {
     5 				"nGram": {
     9 				"nGram": {
     6 					"type": "nGram",
    10 					"type": "nGram",
     7 					"min_gram": 3,
    11 					"min_gram": 3,
    49 						"stop_fr",
    53 						"stop_fr",
    50 						"asciifolding",
    54 						"asciifolding",
    51 						"lowercase",
    55 						"lowercase",
    52 						"snowball_fr",
    56 						"snowball_fr",
    53 						"elision_fr",
    57 						"elision_fr",
    54 						"stemmer_fr",
    58 						"stemmer_fr"
    55 						"word_delimiter"
       
    56 					]
    59 					]
    57 				},
    60 				},
    58 				"french_search": {
    61 				"french_search": {
    59 					"type": "custom",
    62 					"type": "custom",
    60 					"tokenizer": "standard",
    63 					"tokenizer": "standard",
    62 						"stop_fr",
    65 						"stop_fr",
    63 						"asciifolding",
    66 						"asciifolding",
    64 						"lowercase",
    67 						"lowercase",
    65 						"snowball_fr",
    68 						"snowball_fr",
    66 						"elision_fr",
    69 						"elision_fr",
    67 						"stemmer_fr",
    70 						"stemmer_fr"
    68 						"word_delimiter"
       
    69 					]
    71 					]
       
    72 				}
       
    73 			}
       
    74 		}
       
    75 	},
       
    76 	"mappings": {
       
    77 		"_default_": {
       
    78 			"properties": {
       
    79 				"internal_id": {
       
    80 					"type": "keyword"
       
    81 				},
       
    82 				"content_type": {
       
    83 					"type": "keyword"
       
    84 				},
       
    85 				"title": {
       
    86 					"type": "object",
       
    87 					"properties": {
       
    88 						"en": {
       
    89 							"type": "text"
       
    90 						},
       
    91 						"fr": {
       
    92 							"type": "text",
       
    93 							"analyzer": "french",
       
    94 							"search_analyzer": "french_search"
       
    95 						}
       
    96 					}
       
    97 				},
       
    98 				"short_name": {
       
    99 					"type": "object",
       
   100 					"properties": {
       
   101 						"en": {
       
   102 							"type": "text"
       
   103 						},
       
   104 						"fr": {
       
   105 							"type": "text",
       
   106 							"analyzer": "french",
       
   107 							"search_analyzer": "french_search"
       
   108 						}
       
   109 					}
       
   110 				},
       
   111 				"description": {
       
   112 					"type": "object",
       
   113 					"properties": {
       
   114 						"en": {
       
   115 							"type": "text"
       
   116 						},
       
   117 						"fr": {
       
   118 							"type": "text",
       
   119 							"analyzer": "french",
       
   120 							"search_analyzer": "french_search"
       
   121 						}
       
   122 					}
       
   123 				},
       
   124 				"body": {
       
   125 					"type": "object",
       
   126 					"properties": {
       
   127 						"en": {
       
   128 							"type": "text"
       
   129 						},
       
   130 						"fr": {
       
   131 							"type": "text",
       
   132 							"analyzer": "french",
       
   133 							"search_analyzer": "french_search"
       
   134 						}
       
   135 					}
       
   136 				},
       
   137 				"keywords": {
       
   138 					"type": "keyword"
       
   139 				},
       
   140 				"workflow": {
       
   141 					"type": "object",
       
   142 					"properties": {
       
   143 						"name": {
       
   144 							"type": "keyword"
       
   145 						},
       
   146 						"date": {
       
   147 							"type": "date"
       
   148 						},
       
   149 						"status": {
       
   150 							"type": "keyword"
       
   151 						},
       
   152 						"created_date": {
       
   153 							"type": "date"
       
   154 						},
       
   155 						"modified_date": {
       
   156 							"type": "date"
       
   157 						},
       
   158 						"publication_date": {
       
   159 							"type": "date"
       
   160 						},
       
   161 						"effective_date": {
       
   162 							"type": "date"
       
   163 						},
       
   164 						"push_end_date": {
       
   165 							"type": "date"
       
   166 						},
       
   167 						"expiration_date": {
       
   168 							"type": "date"
       
   169 						},
       
   170 						"first_publication_date": {
       
   171 							"type": "date"
       
   172 						}
       
   173 					}
       
   174 				},
       
   175 				"extfile": {
       
   176 					"type": "object",
       
   177 					"properties": {
       
   178 						"title": {
       
   179 							"type": "object",
       
   180 							"properties": {
       
   181 								"en": {
       
   182 									"type": "text"
       
   183 								},
       
   184 								"fr": {
       
   185 									"type": "text",
       
   186 									"analyzer": "french",
       
   187 									"search_analyzer": "french_search"
       
   188 								}
       
   189 							}
       
   190 						},
       
   191 						"description": {
       
   192 							"type": "object",
       
   193 							"properties": {
       
   194 								"en": {
       
   195 									"type": "text"
       
   196 								},
       
   197 								"fr": {
       
   198 									"type": "text",
       
   199 									"analyzer": "french",
       
   200 									"search_analyzer": "french_search"
       
   201 								}
       
   202 							}
       
   203 						}
       
   204 					}
       
   205 				},
       
   206 				"gallery": {
       
   207 					"type": "object",
       
   208 					"properties": {
       
   209 						"title": {
       
   210 							"type": "object",
       
   211 							"properties": {
       
   212 								"en": {
       
   213 									"type": "text"
       
   214 								},
       
   215 								"fr": {
       
   216 									"type": "text",
       
   217 									"analyzer": "french",
       
   218 									"search_analyzer": "french_search"
       
   219 								}
       
   220 							}
       
   221 						},
       
   222 						"description": {
       
   223 							"type": "object",
       
   224 							"properties": {
       
   225 								"en": {
       
   226 									"type": "text"
       
   227 								},
       
   228 								"fr": {
       
   229 									"type": "text",
       
   230 									"analyzer": "french",
       
   231 									"search_analyzer": "french_search"
       
   232 								}
       
   233 							}
       
   234 						}
       
   235 					}
       
   236 				},
       
   237 				"location": {
       
   238 					"type": "object",
       
   239 					"properties": {
       
   240 						"coords": {
       
   241 							"type": "geo_point"
       
   242 						},
       
   243 						"forests": {
       
   244 							"type": "keyword"
       
   245 						},
       
   246 						"cities": {
       
   247 							"type": "keyword"
       
   248 						},
       
   249 						"departments": {
       
   250 							"type": "keyword"
       
   251 						},
       
   252 						"countries": {
       
   253 							"type": "keyword"
       
   254 						},
       
   255 						"structures": {
       
   256 							"type": "keyword"
       
   257 						}
       
   258 					}
       
   259 				},
       
   260 				"hearing": {
       
   261 					"type": "object",
       
   262 					"properties": {
       
   263 						"targets": {
       
   264 							"type": "keyword"
       
   265 						},
       
   266 						"national_scope": {
       
   267 							"type": "boolean"
       
   268 						},
       
   269 						"forests": {
       
   270 							"type": "keyword"
       
   271 						},
       
   272 						"cities": {
       
   273 							"type": "keyword"
       
   274 						},
       
   275 						"departments": {
       
   276 							"type": "keyword"
       
   277 						},
       
   278 						"countries": {
       
   279 							"type": "keyword"
       
   280 						},
       
   281 						"structures": {
       
   282 							"type": "keyword"
       
   283 						},
       
   284 						"source_site": {
       
   285 							"type": "keyword"
       
   286 						},
       
   287 						"diffusion_sites": {
       
   288 							"type": "keyword"
       
   289 						}
       
   290 					}
       
   291 				},
       
   292 				"tags": {
       
   293 					"type": "keyword"
       
   294 				},
       
   295 				"themes": {
       
   296 					"type": "object",
       
   297 					"properties": {
       
   298 						"terms": {
       
   299 							"type": "keyword"
       
   300 						},
       
   301 						"synonyms": {
       
   302 							"type": "keyword"
       
   303 						},
       
   304 						"parents": {
       
   305 							"type": "keyword"
       
   306 						},
       
   307 						"associations": {
       
   308 							"type": "keyword"
       
   309 						}
       
   310 					}
       
   311 				},
       
   312 				"collections": {
       
   313 					"type": "keyword"
    70 				}
   314 				}
    71 			}
   315 			}
    72 		}
   316 		}
    73 	}
   317 	}
    74 }
   318 }