Commit cdeb24fe authored by lixiaofang's avatar lixiaofang

add

parent 3d7b4e33
...@@ -310,9 +310,10 @@ for old_item in result_dict["hits"]: ...@@ -310,9 +310,10 @@ for old_item in result_dict["hits"]:
es_cli_obj = ESPerform.get_cli() es_cli_obj = ESPerform.get_cli()
q = {} q = {}
q["query"] = { q["query"] = {
"term": { "bool": {
"id": old_id, "must": [
"is_online": True {"term": {"id": old_id}}
]
} }
} }
result_dict_test = ESPerform.get_search_results(es_cli_obj, "mv-alpha-user-test-190711901", q, 0, 1) result_dict_test = ESPerform.get_search_results(es_cli_obj, "mv-alpha-user-test-190711901", q, 0, 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