--- a/docs/README.txt Fri Dec 28 10:24:48 2018 +0100
+++ b/docs/README.txt Fri Dec 28 11:04:29 2018 +0100
@@ -40,3 +40,109 @@
}
}
}
+
+
+PUT /onf_website/_mapping/PyAMS_document
+{
+ "properties": {
+ "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"
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+
+Update index mappings:
+======================
+
+PUT /onf_website_v2
+{... index_settings ...}
+
+POST /_reindex
+{
+ "source": {
+ "index": "onf_website-v1",
+ "size": 10
+ },
+ "dest": {
+ "index": "onf_website-v2",
+ "pipeline": "attachment"
+ }
+}
+
+DELETE /onf_website
+
+PUT /_aliases
+{
+ "actions": {
+ "add": {
+ "index": "onf_website-v2",
+ "alias": "onf_website"
+ }
+ }
+}
+