# Plugins: Custom recursive queries?

**URL:** <https://discuss.elastic.co/t/plugins-custom-recursive-queries/10940>\
**Category:** Elasticsearch\
**Created:** [February 28, 2013, 3:05am UTC](https://discuss.elastic.co/t/plugins-custom-recursive-queries/10940 "2013-02-28T03:05:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![knacktus](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@knacktus](https://discuss.elastic.co/u/knacktus)\
**Post date:** [February 28, 2013, 3:05am UTC](https://discuss.elastic.co/t/plugins-custom-recursive-queries/10940/1 "2013-02-28T03:05:23Z")

</div>

Hi there,

is it \*generally \*possible to extend the query capabilities with a plugin  
in a way that recursive queries can be performed? Coarsly the plugin would  
need to be able to do the following:

1. Receive a parameterised custom JSON query and the starting values.  
(Custom DSL or custom REST endpoint possible via plugins?)
2. Perform recursive queries (using current results as new values) until no  
further matches are found. (Querying via Java API?)

Cheers,

Jan

--  
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:** ![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 28, 2013, 8:23am UTC](https://discuss.elastic.co/t/plugins-custom-recursive-queries/10940/2 "2013-02-28T08:23:04Z")

</div>

Yes, with plugins, you can generally register new client actions of all  
kind. Assuming you mean cascading queries (queries that trigger other  
queries) you can build it already on top of an ordinary search client, a  
plugin is not required for that.

YMMV when it comes to reuse existing search code and features. For  
example, right now, facets can not be customized via plugins, I hope for  
this being added soon, it's scheduled after 0.90.

Jörg

--  
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:49am UTC](https://discuss.elastic.co/t/plugins-custom-recursive-queries/10940/3 "2017-07-06T02:49:05Z")

</div>


