Commit 9e612ec9 authored by 段英荣's avatar 段英荣

Merge branch 'dev' into 'master'

modify

See merge request alpha/physical!66
parents eb58bef9 d05df1be
...@@ -32,7 +32,10 @@ def query_tag(query,offset,size): ...@@ -32,7 +32,10 @@ def query_tag(query,offset,size):
{"term": {"is_deleted": False}} {"term": {"is_deleted": False}}
], ],
"should":[ "should":[
{"match":{"name": query,"operator":"and"}} {"multi_match":{
"query": query,
"fields":["name"],
"operator":"and"}}
], ],
"minimum_should_match":1 "minimum_should_match":1
} }
......
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