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

修改mapping

parent b76a069e
......@@ -113,7 +113,7 @@ def put_mapping(es, index_prefix, doc_type, mapping, delete=False):
mapping_copy = copy.deepcopy(mapping)
mapping_copy = _mapping_modify(es, doc_type, mapping_copy)
return cl.put_mapping(index=index, body=mapping_copy,include_type_name=False)
return cl.put_mapping(index=index, doc_type="_doc", body=mapping_copy,include_type_name=False)
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