Skip to content
Snippets Groups Projects
Commit 9575714a94be authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

set index to search on before querying

parent 66d74982d6fd
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,9 @@
stop = start + 10
search = self.customize_search(query_string, facet_selections,
start, stop)
# force search to be executed on our index, otherwise FacetSearch
# uses '_all'
search.index = self._cw.vreg.config['index-name']
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