Commit ef87435c authored by lixiaofang's avatar lixiaofang

add

parent ca46ee7f
...@@ -744,7 +744,7 @@ class TopicUtils(object): ...@@ -744,7 +744,7 @@ class TopicUtils(object):
must = cls.process_filters(filters, filter_online=filter_online) must = cls.process_filters(filters, filter_online=filter_online)
query = '' query = ''
for k, v in filters.items(): for k, v in filters.items():
if k == "content" or k == "id": if k == "content":
query = filters[k] query = filters[k]
q = {} q = {}
q["query"] = { q["query"] = {
...@@ -760,6 +760,7 @@ class TopicUtils(object): ...@@ -760,6 +760,7 @@ class TopicUtils(object):
}], }],
"query": { "query": {
"multi_match": { "multi_match": {
"fil"
"type": "cross_fields", "type": "cross_fields",
"operator": "and", "operator": "and",
"query": query "query": query
......
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