Commit 580c06fe authored by 段英荣's avatar 段英荣

modify search

parent 7c9943d3
...@@ -260,7 +260,7 @@ class TopicUtils(object): ...@@ -260,7 +260,7 @@ class TopicUtils(object):
query_fields = ['^'.join((k, str(v))) for (k, v) in multi_fields.items()] query_fields = ['^'.join((k, str(v))) for (k, v) in multi_fields.items()]
multi_match = { multi_match = {
'query': query, 'query': query,
'type': 'cross_fields', 'type': 'best_fields',
'operator': 'and', 'operator': 'and',
'fields': query_fields, 'fields': query_fields,
} }
......
Markdown is supported
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