ElasticSearch: Index vs type and handling updates

后端 未结 1 1668
臣服心动
臣服心动 2020-12-21 11:10

I\'m pretty familiar with the capabilities of ElasticSearch and its benefits, but this is the first time I\'m getting my hands dirty building an index. So I\'m eager to get

1条回答
  •  时光说笑
    2020-12-21 11:55

    First it is worth noting that mapping types will go away in the next ES release (soft deprecation in ES 6 and removal in ES 7).

    Now whether types go away or not, it is still possible to use a single index, however you'd increase sparsity since only 30% of your fields are common and that should be avoided at all cost.

    So, I'd say that your multi-index approach is the only one that makes sense given the nature of your data.

    Additional information worth reading: https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html

    0 讨论(0)
提交回复
热议问题