Commit 0fd0b0ef authored by Pablo Panero's avatar Pablo Panero
Browse files

search: change default_field to include subfields

parent 87ce9ac7
......@@ -81,7 +81,7 @@ def search_factory(self, search, query_parser=None):
def _csas_query_parser(qstr=None):
"""Default parser that uses the Q() from elasticsearch_dsl."""
if qstr:
return Q('query_string', query=qstr, default_field='_search_all')
return Q('query_string', query=qstr, default_field='_search_all.*')
return Q()
return default_search_factory(self, search, _csas_query_parser)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment