Added resource specificities mapping
authorThierry Florac <thierry.florac@onf.fr>
Fri, 28 Dec 2018 10:24:48 +0100
changeset 123 baa26ee96741
parent 122 ef127b6fbd3c
child 124 e7c1926fb3f8
Added resource specificities mapping
docs/mappings/index-settings.json
--- a/docs/mappings/index-settings.json	Thu Dec 27 19:16:55 2018 +0100
+++ b/docs/mappings/index-settings.json	Fri Dec 28 10:24:48 2018 +0100
@@ -88,6 +88,9 @@
 				"content_type": {
 					"type": "keyword"
 				},
+				"data_type": {
+					"type": "keyword"
+				},
 				"title": {
 					"type": "object",
 					"properties": {
@@ -330,6 +333,73 @@
 				},
 				"collections": {
 					"type": "keyword"
+				},
+				"resource_info": {
+					"type": "object",
+					"properties": {
+						"author": {
+							"type": "text"
+						},
+						"drawer": {
+							"type": "text"
+						},
+						"colourist": {
+							"type": "text"
+						},
+						"lettering": {
+							"type": "text"
+						},
+						"producer": {
+							"type": "text"
+						},
+						"director": {
+							"type": "text"
+						},
+						"actors": {
+							"type": "text"
+						},
+						"editor": {
+							"type": "text"
+						},
+						"collection": {
+							"type": "keyword"
+						},
+						"series": {
+							"type": "text"
+						},
+						"editor_reference": {
+							"type": "keyword"
+						},
+						"isbn_number": {
+							"type": "keyword"
+						},
+						"summary": {
+							"type": "object",
+							"properties": {
+								"en": {
+									"type": "text"
+								},
+								"fr": {
+									"type": "text",
+									"analyzer": "french",
+									"search_analyzer": "french_search"
+								}
+							}
+						},
+						"publisher_words": {
+							"type": "object",
+							"properties": {
+								"en": {
+									"type": "text"
+								},
+								"fr": {
+									"type": "text",
+									"analyzer": "french",
+									"search_analyzer": "french_search"
+								}
+							}
+						}
+					}
 				}
 			}
 		}