Version 0.1.17 0.1.17
authorThierry Florac <thierry.florac@onf.fr>
Fri, 30 Nov 2018 14:46:38 +0100
changeset 113 0baf6315d838
parent 112 88ef502db9b1
child 114 2f69b008b2e4
Version 0.1.17
buildout.cfg
docs/HISTORY.txt
docs/README.txt
docs/mappings/index-settings.json
setup.py
src/pyams_content_es.egg-info/PKG-INFO
--- a/buildout.cfg	Fri Nov 30 14:36:43 2018 +0100
+++ b/buildout.cfg	Fri Nov 30 14:46:38 2018 +0100
@@ -84,4 +84,4 @@
 eggs = pyams_content_es [test]
 
 [versions]
-pyams_content_es = 0.1.16.1
+pyams_content_es = 0.1.17
--- a/docs/HISTORY.txt	Fri Nov 30 14:36:43 2018 +0100
+++ b/docs/HISTORY.txt	Fri Nov 30 14:46:38 2018 +0100
@@ -1,6 +1,12 @@
 History
 =======
 
+0.1.17
+------
+ - added header to document index
+ - added "parent_ids" index attribute and query params
+ - use iterators to get query params
+
 0.1.16.1
 --------
  - use commits (after 10 documents) instead of savepoints when re-indexing the whole site to avoid ES timeouts
--- a/docs/README.txt	Fri Nov 30 14:36:43 2018 +0100
+++ b/docs/README.txt	Fri Nov 30 14:46:38 2018 +0100
@@ -10,3 +10,33 @@
 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
+
+
+PUT /onf_website/_mapping/PyAMS_document
+{
+  "properties": {
+    "header": {
+      "type": "object",
+      "properties": {
+        "en": {
+          "type": "text"
+        },
+        "fr": {
+          "type": "text",
+          "analyzer": "french",
+          "search_analyzer": "french_search"
+        }
+      }
+    }
+  }
+}
+
+
+PUT /onf_website/_mapping/PyAMS_document
+{
+  "properties": {
+    "parent_ids": {
+      "type": "keyword"
+    }
+  }
+}
--- a/docs/mappings/index-settings.json	Fri Nov 30 14:36:43 2018 +0100
+++ b/docs/mappings/index-settings.json	Fri Nov 30 14:46:38 2018 +0100
@@ -74,7 +74,7 @@
 		}
 	},
 	"mappings": {
-		"_default_": {
+		"PyAMS_document": {
 			"properties": {
 				"internal_id": {
 					"type": "keyword"
@@ -82,6 +82,9 @@
 				"reference_id": {
 					"type": "keyword"
 				},
+				"parent_ids": {
+					"type": "keyword"
+				},
 				"content_type": {
 					"type": "keyword"
 				},
@@ -111,6 +114,19 @@
 						}
 					}
 				},
+				"header": {
+					"type": "object",
+					"properties": {
+						"en": {
+							"type": "text"
+						},
+						"fr": {
+							"type": "text",
+							"analyzer": "french",
+							"search_analyzer": "french_search"
+						}
+					}
+				},
 				"description": {
 					"type": "object",
 					"properties": {
--- a/setup.py	Fri Nov 30 14:36:43 2018 +0100
+++ b/setup.py	Fri Nov 30 14:46:38 2018 +0100
@@ -22,7 +22,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.16.1'
+version = '0.1.17'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_content_es.egg-info/PKG-INFO	Fri Nov 30 14:36:43 2018 +0100
+++ b/src/pyams_content_es.egg-info/PKG-INFO	Fri Nov 30 14:46:38 2018 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyams-content-es
-Version: 0.1.16.1
+Version: 0.1.17
 Summary: PyAMS content interfaces and classes for ElasticSearch indexation
 Home-page: http://hg.ztfy.org/pyams/pyams_content_es
 Author: Thierry Florac
@@ -20,9 +20,45 @@
         curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @mappings/WfBlogPost.json
         
         
+        PUT /onf_website/_mapping/PyAMS_document
+        {
+          "properties": {
+            "header": {
+              "type": "object",
+              "properties": {
+                "en": {
+                  "type": "text"
+                },
+                "fr": {
+                  "type": "text",
+                  "analyzer": "french",
+                  "search_analyzer": "french_search"
+                }
+              }
+            }
+          }
+        }
+        
+        
+        PUT /onf_website/_mapping/PyAMS_document
+        {
+          "properties": {
+            "parent_ids": {
+              "type": "keyword"
+            }
+          }
+        }
+        
+        
         History
         =======
         
+        0.1.17
+        ------
+         - added header to document index
+         - added "parent_ids" index attribute and query params
+         - use iterators to get query params
+        
         0.1.16.1
         --------
          - use commits (after 10 documents) instead of savepoints when re-indexing the whole site to avoid ES timeouts