Commit be5c499c authored by 李小芳's avatar 李小芳

修改mapping

parent ffa19f99
......@@ -115,7 +115,7 @@ def put_mapping(es, index_prefix, doc_type, mapping, delete=False):
print(index)
print(doc_type)
print(mapping_copy)
return cl.put_mapping(index=index, doc_type="_doc", body=mapping_copy)
return cl.put_mapping(index=index, body=mapping_copy)
def alias_shift(es, alias, old_index, new_index):
......
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