Version 0.1.6 0.1.6
authorThierry Florac <thierry.florac@onf.fr>
Fri, 08 Dec 2017 11:58:41 +0100
changeset 32 6bb958e6e26a
parent 31 26ff0b922ab0
child 33 936c021046ad
Version 0.1.6
buildout.cfg
docs/HISTORY.txt
docs/README.txt
docs/mappings/mappings/WfNewsEvent.json
docs/mappings/mappings/WfTopic.json
setup.py
src/pyams_content_es.egg-info/PKG-INFO
src/pyams_content_es.egg-info/SOURCES.txt
--- a/buildout.cfg	Fri Dec 08 11:22:31 2017 +0100
+++ b/buildout.cfg	Fri Dec 08 11:58:41 2017 +0100
@@ -84,4 +84,4 @@
 eggs = pyams_content_es [test]
 
 [versions]
-pyams_content_es = 0.1.5
+pyams_content_es = 0.1.6
--- a/docs/HISTORY.txt	Fri Dec 08 11:22:31 2017 +0100
+++ b/docs/HISTORY.txt	Fri Dec 08 11:58:41 2017 +0100
@@ -1,6 +1,10 @@
 History
 =======
 
+0.1.6
+-----
+ - updated external files and paragraphs index adapters
+
 0.1.5
 -----
  - updated paragraphs index adapters
--- a/docs/README.txt	Fri Dec 08 11:22:31 2017 +0100
+++ b/docs/README.txt	Fri Dec 08 11:58:41 2017 +0100
@@ -5,7 +5,8 @@
 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 @settings.json
+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 @WfNewsEvent.json
-curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @WfBlogPost.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
--- a/docs/mappings/mappings/WfNewsEvent.json	Fri Dec 08 11:22:31 2017 +0100
+++ b/docs/mappings/mappings/WfNewsEvent.json	Fri Dec 08 11:58:41 2017 +0100
@@ -163,7 +163,7 @@
 				"type": "object",
 				"properties": {
 					"city": {
-						"type": "keyword"
+						"type": "string"
 					},
 					"coords": {
 						"type": "geo_point"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/mappings/mappings/WfTopic.json	Fri Dec 08 11:58:41 2017 +0100
@@ -0,0 +1,221 @@
+{
+	"WfTopic": {
+		"properties": {
+			"internal_id": {
+				"type": "keyword"
+			},
+			"content_type": {
+				"type": "keyword"
+			},
+			"title": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"short_name": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"description": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"body": {
+				"type": "object",
+				"properties": {
+					"en": {
+						"type": "string"
+					},
+					"fr": {
+						"type": "string",
+						"analyzer": "french",
+						"search_analyzer": "french_search"
+					}
+				}
+			},
+			"keywords": {
+				"type": "keyword"
+			},
+			"workflow": {
+				"type": "object",
+				"properties": {
+					"name": {
+						"type": "keyword"
+					},
+					"date": {
+						"type": "date"
+					},
+					"status": {
+						"type": "keyword"
+					},
+					"created_date": {
+						"type": "date"
+					},
+					"modified_date": {
+						"type": "date"
+					},
+					"publication_date": {
+						"type": "date"
+					},
+					"effective_date": {
+						"type": "date"
+					},
+					"push_end_date": {
+						"type": "date"
+					},
+					"expiration_date": {
+						"type": "date"
+					},
+					"first_publication_date": {
+						"type": "date"
+					}
+				}
+			},
+			"extfile": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					}
+				}
+			},
+			"gallery": {
+				"type": "object",
+				"properties": {
+					"title": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					},
+					"description": {
+						"type": "object",
+						"properties": {
+							"en": {
+								"type": "string"
+							},
+							"fr": {
+								"type": "string",
+								"analyzer": "french",
+								"search_analyzer": "french_search"
+							}
+						}
+					}
+				}
+			},
+			"location": {
+				"type": "object",
+				"properties": {
+					"city": {
+						"type": "string"
+					},
+					"coords": {
+						"type": "geo_point"
+					},
+					"countries": {
+						"type": "keyword"
+					},
+					"departments": {
+						"type": "keyword"
+					},
+					"forests": {
+						"type": "keyword"
+					},
+					"postal_code": {
+						"type": "keyword"
+					},
+					"structures": {
+						"type": "keyword"
+					}
+				}
+			},
+			"hearing": {
+				"type": "object",
+				"properties": {
+					"targets": {
+						"type": "keyword"
+					},
+					"source_site": {
+						"type": "keyword"
+					},
+					"diffusion_sites": {
+						"type": "keyword"
+					}
+				}
+			},
+			"themes": {
+				"type": "object",
+				"properties": {
+					"terms": {
+						"type": "keyword"
+					},
+					"synonyms": {
+						"type": "keyword"
+					},
+					"parents": {
+						"type": "keyword"
+					},
+					"associations": {
+						"type": "keyword"
+					}
+				}
+			}
+		}
+	}
+}
--- a/setup.py	Fri Dec 08 11:22:31 2017 +0100
+++ b/setup.py	Fri Dec 08 11:58:41 2017 +0100
@@ -22,7 +22,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.5'
+version = '0.1.6'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_content_es.egg-info/PKG-INFO	Fri Dec 08 11:22:31 2017 +0100
+++ b/src/pyams_content_es.egg-info/PKG-INFO	Fri Dec 08 11:58:41 2017 +0100
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: pyams-content-es
-Version: 0.1.5
+Version: 0.1.6
 Summary: PyAMS content interfaces and classes for ElasticSearch indexation
 Home-page: http://hg.ztfy.org/pyams/pyams_content_es
 Author: Thierry Florac
 Author-email: tflorac@ulthar.net
 License: ZPL
+Description-Content-Type: UNKNOWN
 Description: 
         Liste des actions à effectuer
         =============================
@@ -13,15 +14,20 @@
         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 @settings.json
+        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 @WfNewsEvent.json
-        curl --noproxy localhost -XPUT    http://localhost:9200/onf_website/WfBlogPost/_mapping -d @WfBlogPost.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
         
         
         History
         =======
         
+        0.1.6
+        -----
+         - updated external files and paragraphs index adapters
+        
         0.1.5
         -----
          - updated paragraphs index adapters
--- a/src/pyams_content_es.egg-info/SOURCES.txt	Fri Dec 08 11:22:31 2017 +0100
+++ b/src/pyams_content_es.egg-info/SOURCES.txt	Fri Dec 08 11:58:41 2017 +0100
@@ -7,6 +7,7 @@
 docs/mappings/mappings/WfBlogPost.json
 docs/mappings/mappings/WfImageMap.json
 docs/mappings/mappings/WfNewsEvent.json
+docs/mappings/mappings/WfTopic.json
 src/pyams_content_es/__init__.py
 src/pyams_content_es/document.py
 src/pyams_content_es/include.py