# Replication/mirroring documents by query

**URL:** <https://discuss.elastic.co/t/replication-mirroring-documents-by-query/18335>\
**Category:** Elasticsearch\
**Created:** [June 25, 2014, 2:57pm UTC](https://discuss.elastic.co/t/replication-mirroring-documents-by-query/18335 "2014-06-25T14:57:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ville\_Mattila](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ville_mattila/32/1457_2.png) [@Ville\_Mattila](https://discuss.elastic.co/u/Ville_Mattila)\
**Post date:** [June 25, 2014, 2:57pm UTC](https://discuss.elastic.co/t/replication-mirroring-documents-by-query/18335/1 "2014-06-25T14:57:45Z")

</div>

Hi,

I'd need to make a local almost real-time copy of a part of large indexes. Before implementing this logic in our application layer, I was wondering id there are already existing tools in Elasticsearch to do this? Or is there something I should consider otherwise?

The documents to copy is defined by a query (or filter). Documents that have been modified in remote should be updated to the local copy.possible deleted documents should be deleted too as well as new documents inserted. Conflicts are not possible: updates are always routed via the master.

The connectivity between the remote and local is unstable.

All your ideas and comments are welcome!

Ville

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76f38046-e749-47f6-b63e-574f4ccc89b8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76f38046-e749-47f6-b63e-574f4ccc89b8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:19am UTC](https://discuss.elastic.co/t/replication-mirroring-documents-by-query/18335/2 "2017-07-06T01:19:48Z")

</div>

Closed on July 6, 2017, 1:19am UTC


