# Indexing the same data multiple times

**URL:** <https://discuss.elastic.co/t/indexing-the-same-data-multiple-times/14656>\
**Category:** Elasticsearch\
**Created:** [December 2, 2013, 9:14am UTC](https://discuss.elastic.co/t/indexing-the-same-data-multiple-times/14656 "2013-12-02T09:14:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel\_Mlynarczyk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawel_mlynarczyk/32/1568_2.png) [@Pawel\_Mlynarczyk](https://discuss.elastic.co/u/Pawel_Mlynarczyk)\
**Post date:** [December 2, 2013, 9:14am UTC](https://discuss.elastic.co/t/indexing-the-same-data-multiple-times/14656/1 "2013-12-02T09:14:46Z")

</div>

Hello

I have an index (products) consisting of some indexed fields (properties)  
and an attachment field (I am using attachment plugin). I was wandering if  
it is (or it will be) possible to index an attachment just once (and store  
it in it's own index maybe) and then just 'attach' it to other documents.  
By 'attach' I mean a process resulting in the possibility of searching  
products by an attachment, without having to index the attachment again and  
again (in my case, many products include the same attachment).  
I was thinking about copying the tokens from the already indexed doc to the  
other ones, but as far as I am concerned, this can not be done.  
I would appriciate any suggestions on how to avoid indexing the same data  
again and again within the different products.  
Thanks in advance.

Paweł Młynarczyk

--  
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/add5c7d7-6e3a-4946-95fa-b827c13719a7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/add5c7d7-6e3a-4946-95fa-b827c13719a7%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:03am UTC](https://discuss.elastic.co/t/indexing-the-same-data-multiple-times/14656/2 "2017-07-06T02:03:57Z")

</div>


