3

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.

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.