# HELP! Specifying an analyzer path of a nested object of a mapping

**URL:** <https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545>\
**Category:** Elasticsearch\
**Created:** [January 29, 2013, 7:16pm UTC](https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545 "2013-01-29T19:16:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carla\_cuesta](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@carla\_cuesta](https://discuss.elastic.co/u/carla_cuesta)\
**Post date:** [January 29, 2013, 7:16pm UTC](https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545/1 "2013-01-29T19:16:55Z")

</div>

Hello,

I need an to specify a dynamic analyzer that matches a specific element in  
my object but the path is not as simple as the example in  
[http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html](http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html).

I have the following mapping:

{  
"type1" : {  
"\_analyzer" : {  
"path" : "locale"  
},  
"properties" : {  
"context" : {"type" : "string", "index" : "no"},  
"graph" : {  
"properties" : {  
"locale" : "en",  
"other\_field" : "blabla"  
}  
}  
}

```
}

```

}

I've ran some tests and it seems that it is not finding the "locale" field. How can I specify that the path is "locale" inside "graph"?

Thank you for your help.

Regards,  
Carla

--  
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:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 30, 2013, 9:46am UTC](https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545/2 "2013-01-30T09:46:10Z")

</div>

On Tue, 2013-01-29 at 11:16 -0800, [carla.cuesta@gmail.com](mailto:carla.cuesta@gmail.com) wrote:

> Hello,
> 
> I need an to specify a dynamic analyzer that matches a specific  
> element in my object but the path is not as simple as the example in  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html).
> 
> I have the following mapping:
> 
> {  
> "type1" : {  
> "\_analyzer" : {  
> "path" : "locale"  
> },  
> "properties" : {  
> "context" : {"type" : "string", "index" : "no"},  
> "graph" : {  
> "properties" : {  
> "locale" : "en",  
> "other\_field" : "blabla"  
> }  
> }  
> }  
> }  
> }
> 
> I've ran some tests and it seems that it is not finding the "locale" field. How can I specify that the path is "locale" inside "graph"?

Try setting the path to 'graph.locale'

clint

--  
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:** ![carla\_cuesta](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@carla\_cuesta](https://discuss.elastic.co/u/carla_cuesta)\
**Post date:** [January 30, 2013, 10:32am UTC](https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545/3 "2013-01-30T10:32:59Z")

</div>

That worked!! Thank you very much for your help!! 🙂

On 30/01/2013, at 10:46, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com) wrote:

> On Tue, 2013-01-29 at 11:16 -0800, [carla.cuesta@gmail.com](mailto:carla.cuesta@gmail.com) wrote:
> 
> > Hello,
> > 
> > I need an to specify a dynamic analyzer that matches a specific  
> > element in my object but the path is not as simple as the example in  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/analyzer-field.html).
> > 
> > I have the following mapping:
> > 
> > {  
> > "type1" : {  
> > "\_analyzer" : {  
> > "path" : "locale"  
> > },  
> > "properties" : {  
> > "context" : {"type" : "string", "index" : "no"},  
> > "graph" : {  
> > "properties" : {  
> > "locale" : "en",  
> > "other\_field" : "blabla"  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > I've ran some tests and it seems that it is not finding the "locale" field. How can I specify that the path is "locale" inside "graph"?  
> > Try setting the path to 'graph.locale'
> 
> clint
> 
> --  
> 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).

--  
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:53am UTC](https://discuss.elastic.co/t/help-specifying-an-analyzer-path-of-a-nested-object-of-a-mapping/10545/4 "2017-07-06T02:53:57Z")

</div>


