Performance Issue with Single-Type Index vs. Multi-Type Index in Elasticsearch

I have a scenario where I initially created an index with a single type, and later, I created a new index by combining multiple types into one index. During performance testing, I've noticed that the index with a single type is performing slower, even though it has fewer records compared to the multi-type index.

  • The single-type index contains fewer documents.
  • The multi-type index combines multiple mappings for different document types.
  • Despite the smaller size, the performance of the single-type index is noticeably worse.

Can anyone explain why this might be happening? Is there something in the way Elasticsearch handles single-type versus multi-type indices that could be affecting performance?

Configuration: 1 Primary Shard and 2 Replica Shards for All Indices

Any insights or suggestions would be appreciated. Thanks!

Elasticsearch have not supported multiple document types for a long time. Which version of Elasticsearch are you using?