Commit c878f70d authored by 段英荣's avatar 段英荣

modify

parent 7085fd06
...@@ -59,8 +59,8 @@ def query_tag(query,offset,size): ...@@ -59,8 +59,8 @@ def query_tag(query,offset,size):
"completion":{ "completion":{
"field":"suggest", "field":"suggest",
"contexts":{ "contexts":{
"is_online": True, "is_online": [True],
"is_deleted": False "is_deleted": [False]
} }
} }
} }
......
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
"contexts":[ "contexts":[
{ {
"name":"is_online", "name":"is_online",
"type": "category" "type": "category",
"path": "is_online"
}, },
{ {
"name":"is_deleted", "name":"is_deleted",
"type": "category" "type": "category",
"path": "is_deleted"
} }
] ]
}, },
......
...@@ -30,8 +30,8 @@ class TagTransfer(object): ...@@ -30,8 +30,8 @@ class TagTransfer(object):
res["suggest"] = { res["suggest"] = {
"input":tag_name_terms_list, "input":tag_name_terms_list,
"contexts":{ "contexts":{
"is_online": instance.is_online, "is_online": [instance.is_online],
"is_deleted": instance.is_deleted "is_deleted": [instance.is_deleted]
} }
} }
res["name"] = instance.name res["name"] = instance.name
......
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