# Nested search

**URL:** <https://discuss.elastic.co/t/nested-search/23131>\
**Category:** Elasticsearch\
**Created:** [April 7, 2015, 2:25pm UTC](https://discuss.elastic.co/t/nested-search/23131 "2015-04-07T14:25:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_von\_Rudno](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jorge\_von\_Rudno](https://discuss.elastic.co/u/Jorge_von_Rudno)\
**Post date:** [April 7, 2015, 2:25pm UTC](https://discuss.elastic.co/t/nested-search/23131/1 "2015-04-07T14:25:58Z")

</div>

Hello everybody,

Is possible to generate a search with an nested data like the following  
example in sql:

select count(_), (select count(_) from customer\_list where bigentry =  
'1' and main\_category = 391)  
from customer\_list where main\_category = 391

In advance thanks for your help.

Regards

Jorge von Rudno

--  
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/5523E8F6.2030409%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/5523E8F6.2030409%40gmail.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, 12:21am UTC](https://discuss.elastic.co/t/nested-search/23131/2 "2017-07-06T00:21:09Z")

</div>

Closed on July 6, 2017, 12:21am UTC


