# Delegating parts of queries to external indices

**URL:** <https://discuss.elastic.co/t/delegating-parts-of-queries-to-external-indices/11123>\
**Category:** Elasticsearch\
**Created:** [March 13, 2013, 3:02am UTC](https://discuss.elastic.co/t/delegating-parts-of-queries-to-external-indices/11123 "2013-03-13T03:02:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Kuhn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_kuhn/32/2450_2.png) [@Ben\_Kuhn](https://discuss.elastic.co/u/Ben_Kuhn)\
**Post date:** [March 13, 2013, 3:02am UTC](https://discuss.elastic.co/t/delegating-parts-of-queries-to-external-indices/11123/1 "2013-03-13T03:02:39Z")

</div>

Hi all,

I'm working on a project where we have to do searches that are a  
combination of traditional searches of the kind that ES handles well, plus  
other types of queries that use a specialized index that we'd like to  
maintain separately. Is it possible/advisable to write a plugin or  
something that could dispatch parts of queries to external indices, parse  
the results and merge them with the ES part of the query? I tried to look  
around the ES plugin documentation to see what hooks were there, but I  
couldn't tell if any of them allowed delegating whole parts of the query  
and then merging at the end.

Thanks for your help!

Ben

--  
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).  
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:46am UTC](https://discuss.elastic.co/t/delegating-parts-of-queries-to-external-indices/11123/2 "2017-07-06T02:46:54Z")

</div>

Closed on July 6, 2017, 2:46am UTC


