Commit 0d077bb0 authored by 李小芳's avatar 李小芳

修改mapping

parent d4e06a85
......@@ -76,6 +76,8 @@ def load_mapping(doc_type):
def put_mapping(es, index_prefix, doc_type, mapping, delete=False):
doc_type = "_doc"
cl = es.indices
print(cl.doc_type)
print(es.doc_type)
index = es_index_adapt(
index_prefix=index_prefix,
doc_type=doc_type,
......
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