Permalink
Browse files

Use the match_all query to speed up performing filter only queries dr…

…amatically.
  • Loading branch information...
1 parent 769f5a8 commit edb3ca5c3723fde9f0e7a51762e203d899ceed58 @jezdez jezdez committed Jul 23, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 haystack/backends/elasticsearch_backend.py
@@ -246,9 +246,7 @@ def build_search_kwargs(self, query_string, sort_by=None, start_offset=0, end_of
'query': {
'filtered': {
'query': {
- 'query_string': {
- 'query': '*:*',
- },
+ "match_all": {}
},
},
},

0 comments on commit edb3ca5

Please sign in to comment.