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

[views] debug-es shows the request to copy in other tools

parent 1704583892a8
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,10 @@
start, stop,
parents_for=parents_for,
children_for=children_for)
# force search to be executed on our index, otherwise FacetSearch
# uses '_all'
search.index = self._cw.vreg.config['index-name']
if 'debug-es' in self._cw.form:
import json
self.w(unicode(json.dumps(search._s.to_dict())))
self.w(u'<br/>')
try:
response = search.execute()
except NotFoundError:
......
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