Elasticsearch: How to remove display type without deleting the whole index?

Is it possible to remove one type of display from an index without deleting the entire index? https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-mapping.html says that this is not possible, but it's hard for me to believe. Can anyone explain why the functionality was removed? Sounds like basic things.

I have an index with two mappings. I would like to be able to delete one type of association (along with all documents of this type) without deleting another type of association.

thanks

+4
source share
3 answers

/ elasticsearch: 8877. :

, , . , - , . , .

reindex , , , , , reindex api :  . : 16207 : # 15201 .

+2

, , , , .

, - ES, , , , , .

Elasticsearch , , .

+2

For the latest version (above 2.0), ES is no longer able to remove the mapping for a type. Instead, you should remove the index and recreate it using the new mappings. For more information, you can see this in the white paper here . For older versions (below 2.0), elasticsearch allows you to remove a mapping (type) along with its data. REST endpoints

[DELETE] /{index}/{type}

[DELETE] /{index}/{type}/_mapping

[DELETE] /{index}/_mapping/{type}
0
source

Source: https://habr.com/ru/post/1628393/


All Articles