Added content type to document mapping
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Jun 2017 13:36:08 +0200
changeset 13 81395a2919f5
parent 12 7e02b1d62ed6
child 14 b20c1022db17
Added content type to document mapping
src/pyams_content_es/document.py
--- a/src/pyams_content_es/document.py	Tue Jun 27 13:35:40 2017 +0200
+++ b/src/pyams_content_es/document.py	Tue Jun 27 13:36:08 2017 +0200
@@ -65,6 +65,7 @@
 def WfSharedContentIndexInfo(content):
     return ESMapping(analyzer='content',
                      properties=ESMapping(ESField('internal_id'),
+                                          ESField('content_type'),
                                           ESField('title', boost=3.0),
                                           ESField('short_name'),
                                           ESField('description'),