Segment vs. Documents of multiple Types


(Dore Mon) #1

Hi,

as per my understanding Shards are assigned to an Index. One index can have multiple Types holding number of Documents inside. Every Shard have Segments which actually store the Documents inside its data structures.

Now, my Question is that does a Shard stores documents of all the Types of the index in a mixed state? So, if I have 6 Types defined with each having 1 Million documents and I want to perform a query that is only related to 1 of the type documents, will the search cover all 6 Million documents to return the results?

If yes then how can I avoid this waste of resources? Should I build more individual indices instead of putting many types inside an index?


(Yannick Welsch) #2

This should answer your questions and explain the tradeoffs:


(Dore Mon) #3

Love you bro!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.