# Plugin capability question

**URL:** <https://discuss.elastic.co/t/plugin-capability-question/74106>\
**Category:** Elasticsearch\
**Created:** [February 6, 2017, 6:09pm UTC](https://discuss.elastic.co/t/plugin-capability-question/74106 "2017-02-06T18:09:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Chambers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers/32/607_2.png) [@Matt\_Chambers](https://discuss.elastic.co/u/Matt_Chambers)\
**Post date:** [February 6, 2017, 6:09pm UTC](https://discuss.elastic.co/t/plugin-capability-question/74106/1 "2017-02-06T18:09:46Z")

</div>

Hi,

Gotta a question about a specific plugin behavior I'm looking for. I basically need to replace the entire document with another document within a search plugin in some cases. Is this possible?

Parent/child kinda solves this issue for us, but not really since a document can have multiple parents, and even multiple types of parents.

I suspect its not possible because to pull the same document, all children would have to be on the same shard?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 7, 2017, 8:14am UTC](https://discuss.elastic.co/t/plugin-capability-question/74106/2 "2017-02-07T08:14:13Z")

</div>

Hey,

there is no such functionality. I think this kind of functionality should be put into a post processing step, that fetches the required documents after checking the results and then return that back to the client.

--Alex

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 7, 2017, 8:38am UTC](https://discuss.elastic.co/t/plugin-capability-question/74106/3 "2017-02-07T08:38:06Z")

</div>

Do you think about searches where the documents returned have links to other documents and they should be fetched, by a series of "get" requests, like a cascade?

---

<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:** [March 7, 2017, 8:38am UTC](https://discuss.elastic.co/t/plugin-capability-question/74106/4 "2017-03-07T08:38:15Z")

</div>

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