Due to the distributed nature of ES, the equivalent of this would be to delete the index and create it again using the same mapping.
-- Itamar Syn-Hershko http://code972.com | @synhershko <https://twitter.com/synhershko> Freelance Developer & Consultant Author of RavenDB in Action <http://manning.com/synhershko/> On Sun, Apr 6, 2014 at 4:00 AM, Michael Sokolov <[email protected]> wrote: > This is an old thread, but I have a variation on the same question: I've > seen various recommendations to drop and recreate indexes rather than > deleting all documents. I just want to know if there is anything in > elasticsearch that maps to IndexWriter.deleteAll, since that is an > efficient way to empty an index without having to recreate it. It would be > convenient if say deleteByQuery("*:*") were to cause that: does it? > > -- > 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/e55f492c-b027-4a05-9546-dc2b7f7d468d%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/e55f492c-b027-4a05-9546-dc2b7f7d468d%40googlegroups.com?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/CAHTr4Zt2T%2BpMOyn843Fgffa0LRK_%2BvfJwjkXtcY9V9pcszw-sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
