docs/README.txt
changeset 135 474f0ca528c9
parent 132 92a69e693cca
child 144 1d07028b9283
--- a/docs/README.txt	Mon Jan 07 11:49:26 2019 +0100
+++ b/docs/README.txt	Mon Jan 07 11:50:47 2019 +0100
@@ -12,7 +12,7 @@
 curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
 
 
-PUT /onf_website/_mapping/PyAMS_document
+PUT /onf_website/_mapping/_doc
 {
   "properties": {
     "header": {
@@ -32,7 +32,7 @@
 }
 
 
-PUT /onf_website/_mapping/PyAMS_document
+PUT /onf_website/_mapping/_doc
 {
   "properties": {
     "parent_ids": {
@@ -42,7 +42,7 @@
 }
 
 
-PUT /onf_website/_mapping/PyAMS_document
+PUT /onf_website/_mapping/_doc
 {
   "properties": {
     "resource_info": {
@@ -93,6 +93,19 @@
         "isbn_number": {
           "type": "keyword"
         },
+        "awards": {
+          "type": "object",
+          "properties": {
+            "en": {
+              "type": "text"
+            },
+            "fr": {
+              "type": "text",
+              "analyzer": "french",
+              "search_analyzer": "french_search"
+            }
+          }
+        },
         "summary": {
           "type": "object",
           "properties": {
@@ -106,6 +119,19 @@
             }
           }
         },
+        "synopsis": {
+          "type": "object",
+          "properties": {
+            "en": {
+              "type": "text"
+            },
+            "fr": {
+              "type": "text",
+              "analyzer": "french",
+              "search_analyzer": "french_search"
+            }
+          }
+        },
         "publisher_words": {
           "type": "object",
           "properties": {
@@ -124,7 +150,7 @@
   }
 }
 
-PUT /onf_website/_mapping/PyAMS_document
+PUT /onf_website/_mapping/_doc
 {
   "properties": {
     "link": {