src/pyams_content_es.egg-info/PKG-INFO
changeset 124 e7c1926fb3f8
parent 118 17bc8afd7e4a
child 127 e5cc001c6476
--- a/src/pyams_content_es.egg-info/PKG-INFO	Fri Dec 28 10:24:48 2018 +0100
+++ b/src/pyams_content_es.egg-info/PKG-INFO	Fri Dec 28 11:04:29 2018 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyams-content-es
-Version: 0.1.18
+Version: 0.1.19
 Summary: PyAMS content interfaces and classes for ElasticSearch indexation
 Home-page: http://hg.ztfy.org/pyams/pyams_content_es
 Author: Thierry Florac
@@ -50,9 +50,121 @@
         }
         
         
+        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"
+                }
+            }
+        }
+        
+        
+        
         History
         =======
         
+        0.1.19
+        ------
+         - added resource index info
+         - updated object modified event subscriber to allow indexation of several objects in the same transaction
+         - updated index mapping
+        
         0.1.18
         ------
          - corrected relevance sorting