Skip to content
Snippets Groups Projects
Commit 848960dc68c1 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[views] use registry to get indexer

parent e16e7cb9d87d
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
import cwtags.tag as t
from cubicweb.view import StartupView
from cubes.elasticsearch.es import indexable_types, get_connection
from cubes.elasticsearch.es import indexable_types
from cubes.elasticsearch.search_helpers import compose_search
......@@ -78,7 +78,8 @@
self.w(u'<h1>%s</h1>' % self._cw._('Recherche'))
query_string = xml_escape(self._cw.form.get('search', ''))
self.w(u'<h2>Resultats pour : <em>%s</em></h2>' % query_string)
get_connection(self._cw.vreg.config)
indexer = self._cw.vreg['es'].select('indexer', self._cw)
indexer.get_connection()
facet_selections = {}
start, stop = 0, 10
for key, value in self._cw.form.items():
......
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