# Nested type definition & cross document matching

**URL:** <https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758>\
**Category:** Elasticsearch\
**Created:** [December 7, 2013, 9:52am UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758 "2013-12-07T09:52:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthick\_Duraisamy\_S](https://avatars.discourse-cdn.com/v4/letter/k/258eb7/32.png) [@Karthick\_Duraisamy\_S](https://discuss.elastic.co/u/Karthick_Duraisamy_S)\
**Post date:** [December 7, 2013, 9:52am UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/1 "2013-12-07T09:52:09Z")

</div>

I posted the following document to elastic search.

{  
"car": {  
"name": "Honda City",  
"model": "2013"  
},  
"inventory": [  
{  
"zipcode": "02115",  
"mileage": "10000",  
"city": "Boston"  
},  
{  
"zipcode": "02115",  
"mileage": "89",  
"city": "Boston"  
},  
{  
"zipcode": "02115",  
"mileage": "89",  
"city": "Boston"  
},  
{  
"zipcode": "13210",  
"mileage": "10000",  
"city": "Syracuse"  
}  
]  
}

I did not define any mapping. So I was assuming that the filtering for "zipcode" : "10000" AND "mileage":89 would return the above document as a hit. But it doesnt. Following is my query

{  
"query": {  
"match\_all": {

```
}

```

},  
"filter": {  
"and": [  
{  
"term": {  
"location.mileage": "89"  
}  
},  
{  
"term": {  
"location.zipcode": "13210"  
}  
}  
]  
}  
}

In other words, cross document matching doesnt occur when I dont define the location field as nested. Is my understanding correct?

--  
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/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e688f2a9-255b-4eaa-99f6-e954974ab9d6%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:** ![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:** [December 7, 2013, 3:11pm UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/2 "2013-12-07T15:11:59Z")

</div>

Hey,

you should search for inventory.mileage and inventory.zipcode I guess

--Alex

On Sat, Dec 7, 2013 at 10:52 AM, dsk [karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com) wrote:

> I posted the following document to Elasticsearch.
> 
> {  
> "car": {  
> "name": "Honda City",  
> "model": "2013"  
> },  
> "inventory": [  
> {  
> "zipcode": "02115",  
> "mileage": "10000",  
> "city": "Boston"  
> },  
> {  
> "zipcode": "02115",  
> "mileage": "89",  
> "city": "Boston"  
> },  
> {  
> "zipcode": "02115",  
> "mileage": "89",  
> "city": "Boston"  
> },  
> {  
> "zipcode": "13210",  
> "mileage": "10000",  
> "city": "Syracuse"  
> }  
> ]  
> }
> 
> I did not define any mapping. So I was assuming that the filtering for "zipcode" : "10000" AND "mileage":89 would return the above document as a hit. But it doesnt. Following is my query
> 
> {  
> "query": {  
> "match\_all": {
> 
> ```
> }
> 
> ```
> 
> },  
> "filter": {  
> "and": [  
> {  
> "term": {  
> "location.mileage": "89"  
> }  
> },  
> {  
> "term": {  
> "location.zipcode": "13210"  
> }  
> }  
> ]  
> }  
> }
> 
> In other words, cross document matching doesnt occur when I dont define the location field as nested. Is my understanding correct?
> 
> --  
> 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/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAGCwEM\_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Karthick\_Duraisamy\_S](https://avatars.discourse-cdn.com/v4/letter/k/258eb7/32.png) [@Karthick\_Duraisamy\_S](https://discuss.elastic.co/u/Karthick_Duraisamy_S)\
**Post date:** [December 7, 2013, 6:05pm UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/3 "2013-12-07T18:05:55Z")

</div>

My bad. I should have changed that. Following query doesnt return any  
result either.

{  
"query": {  
"match\_all": {

```
}

```

},  
"filter": {  
"and": [  
{  
"term": {  
"inventory.mileage": "89"  
}  
},  
{  
"term": {  
"inventory.zipcode": "13210"  
}  
}  
]  
}  
}

On Sat, Dec 7, 2013 at 7:11 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> you should search for inventory.mileage and inventory.zipcode I guess
> 
> --Alex
> 
> On Sat, Dec 7, 2013 at 10:52 AM, dsk [karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com)wrote:
> 
> > I posted the following document to Elasticsearch.
> > 
> > {  
> > "car": {  
> > "name": "Honda City",  
> > "model": "2013"  
> > },  
> > "inventory": [  
> > {  
> > "zipcode": "02115",  
> > "mileage": "10000",  
> > "city": "Boston"  
> > },  
> > {  
> > "zipcode": "02115",  
> > "mileage": "89",  
> > "city": "Boston"  
> > },  
> > {  
> > "zipcode": "02115",  
> > "mileage": "89",  
> > "city": "Boston"  
> > },  
> > {  
> > "zipcode": "13210",  
> > "mileage": "10000",  
> > "city": "Syracuse"  
> > }  
> > ]  
> > }
> > 
> > I did not define any mapping. So I was assuming that the filtering for "zipcode" : "10000" AND "mileage":89 would return the above document as a hit. But it doesnt. Following is my query
> > 
> > {  
> > "query": {  
> > "match\_all": {
> > 
> > ```
> > }
> > 
> > ```
> > 
> > },  
> > "filter": {  
> > "and": [  
> > {  
> > "term": {  
> > "location.mileage": "89"  
> > }  
> > },  
> > {  
> > "term": {  
> > "location.zipcode": "13210"  
> > }  
> > }  
> > ]  
> > }  
> > }
> > 
> > In other words, cross document matching doesnt occur when I dont define the location field as nested. Is my understanding correct?
> > 
> > --  
> > 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/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/\_8\_lgike3Eg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/_8_lgike3Eg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAGCwEM\_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 7, 2013, 6:18pm UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/4 "2013-12-07T18:18:40Z")

</div>

Hey,

can you create a gist with all the curl commands you entered (index  
creation, mapping, query) and specify the elasticsearch version you are  
using? This works for me, but might be different to your example (tested  
with 1.0.0 beta2) - maybe I misread something

curl -X PUT 'localhost:9200/test/test/1?refresh' -d '  
{  
"inventory": [  
{  
"zipcode": "02115",  
"mileage": "89"  
},  
{  
"zipcode": "13210",  
"mileage": "10000"  
}  
]  
}  
'

curl -X POST 'localhost:9200/test/test/\_search' -d '{  
"query": {  
"match\_all": {

```
}

```

},  
"filter": {  
"and": [  
{  
"term": {  
"inventory.mileage": "89"  
}  
},  
{  
"term": {  
"inventory.zipcode": "13210"  
}  
}  
]  
}  
}'

--Alex

On Sat, Dec 7, 2013 at 7:05 PM, Karthick Duraisamy Soundararaj \<  
[karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com)\> wrote:

> My bad. I should have changed that. Following query doesnt return any  
> result either.
> 
> {  
> "query": {  
> "match\_all": {
> 
> ```
> }
> 
> ```
> 
> },  
> "filter": {  
> "and": [  
> {  
> "term": {  
> "inventory.mileage": "89"  
> }  
> },  
> {  
> "term": {  
> "inventory.zipcode": "13210"  
> }  
> }  
> ]  
> }  
> }
> 
> On Sat, Dec 7, 2013 at 7:11 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de)wrote:
> 
> > Hey,
> > 
> > you should search for inventory.mileage and inventory.zipcode I guess
> > 
> > --Alex
> > 
> > On Sat, Dec 7, 2013 at 10:52 AM, dsk [karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com)wrote:
> > 
> > > I posted the following document to Elasticsearch.
> > > 
> > > {  
> > > "car": {  
> > > "name": "Honda City",  
> > > "model": "2013"  
> > > },  
> > > "inventory": [  
> > > {  
> > > "zipcode": "02115",  
> > > "mileage": "10000",  
> > > "city": "Boston"  
> > > },  
> > > {  
> > > "zipcode": "02115",  
> > > "mileage": "89",  
> > > "city": "Boston"  
> > > },  
> > > {  
> > > "zipcode": "02115",  
> > > "mileage": "89",  
> > > "city": "Boston"  
> > > },  
> > > {  
> > > "zipcode": "13210",  
> > > "mileage": "10000",  
> > > "city": "Syracuse"  
> > > }  
> > > ]  
> > > }
> > > 
> > > I did not define any mapping. So I was assuming that the filtering for "zipcode" : "10000" AND "mileage":89 would return the above document as a hit. But it doesnt. Following is my query
> > > 
> > > {  
> > > "query": {  
> > > "match\_all": {
> > > 
> > > ```
> > > }
> > > 
> > > ```
> > > 
> > > },  
> > > "filter": {  
> > > "and": [  
> > > {  
> > > "term": {  
> > > "location.mileage": "89"  
> > > }  
> > > },  
> > > {  
> > > "term": {  
> > > "location.zipcode": "13210"  
> > > }  
> > > }  
> > > ]  
> > > }  
> > > }
> > > 
> > > In other words, cross document matching doesnt occur when I dont define the location field as nested. Is my understanding correct?
> > > 
> > > --  
> > > 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/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/\_8\_lgike3Eg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/_8_lgike3Eg/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/CAGCwEM\_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAGCwEM-mpVJHGv5ndnLQaDTLsZWzs1\_cW79cMASnCXwNqofE5Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-mpVJHGv5ndnLQaDTLsZWzs1_cW79cMASnCXwNqofE5Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Karthick\_Duraisamy\_S](https://avatars.discourse-cdn.com/v4/letter/k/258eb7/32.png) [@Karthick\_Duraisamy\_S](https://discuss.elastic.co/u/Karthick_Duraisamy_S)\
**Post date:** [December 7, 2013, 6:39pm UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/5 "2013-12-07T18:39:10Z")

</div>

I tried you commands and it seems works as expected now. Thanks Alex.

Reg my earlier wierd behaviour, I had two indexes cars and cars1. I defined  
inventory as a nested type for cars index type but did not define any  
mapping for cars1

So could it be that the mapping for cars was used cars1?

On Sat, Dec 7, 2013 at 10:18 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> can you create a gist with all the curl commands you entered (index  
> creation, mapping, query) and specify the elasticsearch version you are  
> using? This works for me, but might be different to your example (tested  
> with 1.0.0 beta2) - maybe I misread something
> 
> curl -X PUT 'localhost:9200/test/test/1?refresh' -d '  
> {  
> "inventory": [  
> {  
> "zipcode": "02115",  
> "mileage": "89"  
> },  
> {  
> "zipcode": "13210",  
> "mileage": "10000"  
> }  
> ]  
> }  
> '
> 
> curl -X POST 'localhost:9200/test/test/\_search' -d '{  
> "query": {  
> "match\_all": {
> 
> ```
> }
> 
> ```
> 
> },  
> "filter": {  
> "and": [  
> {  
> "term": {  
> "inventory.mileage": "89"  
> }  
> },  
> {  
> "term": {  
> "inventory.zipcode": "13210"  
> }  
> }  
> ]  
> }  
> }'
> 
> --Alex
> 
> On Sat, Dec 7, 2013 at 7:05 PM, Karthick Duraisamy Soundararaj \<  
> [karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com)\> wrote:
> 
> > My bad. I should have changed that. Following query doesnt return any  
> > result either.
> > 
> > {  
> > "query": {  
> > "match\_all": {
> > 
> > ```
> > }
> > 
> > ```
> > 
> > },  
> > "filter": {  
> > "and": [  
> > {  
> > "term": {  
> > "inventory.mileage": "89"  
> > }  
> > },  
> > {  
> > "term": {  
> > "inventory.zipcode": "13210"  
> > }  
> > }  
> > ]  
> > }  
> > }
> > 
> > On Sat, Dec 7, 2013 at 7:11 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de)wrote:
> > 
> > > Hey,
> > > 
> > > you should search for inventory.mileage and inventory.zipcode I guess
> > > 
> > > --Alex
> > > 
> > > On Sat, Dec 7, 2013 at 10:52 AM, dsk [karthick.soundararaj@gmail.com](mailto:karthick.soundararaj@gmail.com)wrote:
> > > 
> > > > I posted the following document to Elasticsearch.
> > > > 
> > > > {  
> > > > "car": {  
> > > > "name": "Honda City",  
> > > > "model": "2013"  
> > > > },  
> > > > "inventory": [  
> > > > {  
> > > > "zipcode": "02115",  
> > > > "mileage": "10000",  
> > > > "city": "Boston"  
> > > > },  
> > > > {  
> > > > "zipcode": "02115",  
> > > > "mileage": "89",  
> > > > "city": "Boston"  
> > > > },  
> > > > {  
> > > > "zipcode": "02115",  
> > > > "mileage": "89",  
> > > > "city": "Boston"  
> > > > },  
> > > > {  
> > > > "zipcode": "13210",  
> > > > "mileage": "10000",  
> > > > "city": "Syracuse"  
> > > > }  
> > > > ]  
> > > > }
> > > > 
> > > > I did not define any mapping. So I was assuming that the filtering for "zipcode" : "10000" AND "mileage":89 would return the above document as a hit. But it doesnt. Following is my query
> > > > 
> > > > {  
> > > > "query": {  
> > > > "match\_all": {
> > > > 
> > > > ```
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > },  
> > > > "filter": {  
> > > > "and": [  
> > > > {  
> > > > "term": {  
> > > > "location.mileage": "89"  
> > > > }  
> > > > },  
> > > > {  
> > > > "term": {  
> > > > "location.zipcode": "13210"  
> > > > }  
> > > > }  
> > > > ]  
> > > > }  
> > > > }
> > > > 
> > > > In other words, cross document matching doesnt occur when I dont define the location field as nested. Is my understanding correct?
> > > > 
> > > > --  
> > > > 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/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e688f2a9-255b-4eaa-99f6-e954974ab9d6%40googlegroups.com)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/\_8\_lgike3Eg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/_8_lgike3Eg/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/CAGCwEM\_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_QaKcGUjErbvKfWdw1Rs6khHnZppBcv43k%2BhfOYvD1%3Dw%40mail.gmail.com)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABKv5CJyHkoycQZ%2Bdp59jb4mo62oqSpemhXAzauXRi6UCqKTAQ%40mail.gmail.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/\_8\_lgike3Eg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/_8_lgike3Eg/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAGCwEM-mpVJHGv5ndnLQaDTLsZWzs1\_cW79cMASnCXwNqofE5Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-mpVJHGv5ndnLQaDTLsZWzs1_cW79cMASnCXwNqofE5Q%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CABKv5CJX6jcZAOb3a%2BOLVJLpRGMyAJ9--%3DnLBKuU3Fia%3DjEwLg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABKv5CJX6jcZAOb3a%2BOLVJLpRGMyAJ9--%3DnLBKuU3Fia%3DjEwLg%40mail.gmail.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:02am UTC](https://discuss.elastic.co/t/nested-type-definition-cross-document-matching/14758/6 "2017-07-06T02:02:42Z")

</div>

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


