我使用以下设置在Elasticsearch中创建了一个索引.使用Bulk API将数据插入索引后,docs.deleted计数不断增加.这是否意味着文档会自动被删除,如果是这样,我做错了什么?
PUT /inc_index/
{
"mappings": {
"store": {
"properties": {
"title": {
"type": "string",
"term_vector": "with_positions_offsets_payloads",
"store" : true,
"index_analyzer" : "fulltext_analyzer"
},
"description": {
"type": "string",
"term_vector": "with_positions_offsets_payloads",
"store" : true,
"index_analyzer" : "fulltext_analyzer"
},
"category": {
"type": "string"
}
}
}
},
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 1
},
"analysis": {
"analyzer": {
"fulltext_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"lowercase",
"type_as_payload"
]
}
}
}
}
} …Run Code Online (Sandbox Code Playgroud)