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

modify

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