Skip to content
Snippets Groups Projects
Commit 375fb06cb9b7 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

ensure create_index is called on get_connection

parent 1390aeef7481
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@
}
def get_connection(self):
self.create_index()
return es.get_connection(self._cw.vreg.config)
def create_index(self, index_name=None, custom_settings=None):
......@@ -71,7 +72,7 @@
settings = {}
deep_update(settings, self.settings)
deep_update(settings, custom_settings)
es.create_index(self.get_connection(), index_name, settings)
es.create_index(es.get_connection(self._cw.vreg.config), index_name, settings)
class IFullTextIndexSerializable(view.EntityAdapter):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment