Reputation: 2484
I was going through the elasticsearch guide and I wanted to know whether it's a good practice to have multiple doctypes for one index.
Eg. In guide, there's a twitter index with a doctype of _doc. Now if I create another doctype (say tweet) on the same index having a different mapping, is it going to affect the performance in any way ?
I found this Stackoverflow question but it doesn't adequately answers my doubt.
Upvotes: 3
Views: 788
Reputation: 2099
It is possible to have more than 1 mapping type per index but starting from ES 6 and onwards, the mapping types will be removed. So I would definitely not advice to use it.
See the Schedule for removal of mapping types.
Upvotes: 4