You can mix types in a single index, but we recommend you separate them out.
Obviously a search against 30 docs is a lot faster than one against 1 billion. On 20 March 2015 at 13:08, Александр Свиридов <[email protected]> wrote: > From ES document I understood that index is like database and document > type is like table. Every table has its own indexes. > > Let's suppose we have one ES index with two document types (posts and > book) and we have 1000000000 posts and 30 books. If I search for some text > expression in ONLY books will my query be very fast or slow? By other > words - documents of different types are indexed via one index or for every > document type separate index is created? > > > -- > Александр Свиридов > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/1426882118.273423714%40f319.i.mail.ru > <https://groups.google.com/d/msgid/elasticsearch/1426882118.273423714%40f319.i.mail.ru?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9JTafPbhBBeL4GLj3Bs_wenZsRP5DnutQVu0gU%3DdypLQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
