--- a/docs/README.txt Wed Jan 16 15:43:57 2019 +0100
+++ b/docs/README.txt Fri Jan 18 15:43:08 2019 +0100
@@ -4,217 +4,81 @@
curl --noproxy localhost -XPUT http://localhost:9200/_ingest/pipeline/attachment -d @attachment.json
-curl --noproxy localhost -XDELETE http://localhost:9200/onf_website
-curl --noproxy localhost -XPUT http://localhost:9200/onf_website -d @index-settings.json
-
-curl --noproxy localhost -XPUT http://localhost:9200/onf_website/WfNewsEvent/_mapping -d @mappings/WfNewsEvent.json
-curl --noproxy localhost -XPUT http://localhost:9200/onf_website/WfTopic/_mapping -d @mappings/WfTopic.json
-curl --noproxy localhost -XPUT http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
+curl --noproxy localhost -XDELETE http://localhost:9200/pyams-v1
+curl --noproxy localhost -XPUT http://localhost:9200/pyams-v1 -d @index-settings.json
-PUT /onf_website/_mapping/_doc
+PUT /pyams/_mapping/_doc
{
"properties": {
- "header": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
- }
- }
-}
-
-
-PUT /onf_website/_mapping/_doc
-{
- "properties": {
- "parent_ids": {
- "type": "keyword"
- }
- }
-}
-
-
-PUT /onf_website/_mapping/_doc
-{
- "properties": {
- "resource_info": {
+ "workflow": {
"type": "object",
"properties": {
- "original_title": {
- "type": "text"
- },
- "author": {
- "type": "text"
- },
- "translator": {
- "type": "text"
- },
- "illustrator": {
- "type": "text"
- },
- "drawer": {
- "type": "text"
- },
- "colourist": {
- "type": "text"
- },
- "lettering": {
- "type": "text"
- },
- "producer": {
- "type": "text"
- },
- "director": {
- "type": "text"
- },
- "actors": {
- "type": "text"
- },
- "editor": {
- "type": "text"
- },
- "collection": {
+ "name": {
"type": "keyword"
},
- "series": {
- "type": "text"
+ "date": {
+ "type": "date"
},
- "editor_reference": {
- "type": "keyword"
- },
- "isbn_number": {
+ "status": {
"type": "keyword"
},
- "awards": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
+ "created_date": {
+ "type": "date"
+ },
+ "modified_date": {
+ "type": "date"
},
- "summary": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
+ "publication_date": {
+ "type": "date"
+ },
+ "effective_date": {
+ "type": "date"
},
- "synopsis": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
+ "push_end_date": {
+ "type": "date"
+ },
+ "expiration_date": {
+ "type": "date"
},
- "publisher_words": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
+ "first_publication_date": {
+ "type": "date"
+ },
+ "visible_publication_date": {
+ "type": "date"
}
}
}
}
}
-PUT /onf_website/_mapping/_doc
-{
- "properties": {
- "link": {
- "type": "object",
- "properties": {
- "title": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
- },
- "description": {
- "type": "object",
- "properties": {
- "en": {
- "type": "text"
- },
- "fr": {
- "type": "text",
- "analyzer": "french",
- "search_analyzer": "french_search"
- }
- }
- }
- }
- }
- }
-}
-
Update index mappings:
======================
-PUT /onf_website_v2
+PUT /pyams-v2
{... index_settings ...}
POST /_reindex
{
"source": {
- "index": "onf_website-v1",
+ "index": "pyams-v1",
"size": 10
},
"dest": {
- "index": "onf_website-v2",
+ "index": "pyams-v2",
"pipeline": "attachment"
}
}
-DELETE /onf_website
+DELETE /pyams
POST /_aliases
{
"actions": {
"add": {
- "index": "onf_website-v2",
- "alias": "onf_website"
+ "index": "pyams-v2",
+ "alias": "pyams"
}
}
}
-