# (no subject)

**URL:** <https://discuss.elastic.co/t/no-subject/6850>\
**Category:** Elasticsearch\
**Created:** [March 1, 2012, 10:02am UTC](https://discuss.elastic.co/t/no-subject/6850 "2012-03-01T10:02:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)\
**Post date:** [March 1, 2012, 10:02am UTC](https://discuss.elastic.co/t/no-subject/6850/1 "2012-03-01T10:02:08Z")

</div>

can i apply analyzer in the nested field document ? what could be the  
mapping for that?  
suppose I want to create a mapping

String map = " {"my" : {"properties" : {"field" : {"type" :  
"nested"}}}}";

here is a document which i send in the above mapping index .

{"raftaar" : [{"name" : "blue","count" : 4},{"name" :  
"green","count" : 6 }]}

I want to analyze name field in the standard is it possible to this.  
A simple example would be worth it .  
Thank you.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 1, 2012, 12:41pm UTC](https://discuss.elastic.co/t/no-subject/6850/2 "2012-03-01T12:41:42Z")

</div>

A "nested" type wraps an object, you need to map the internal relevant "core" type fields with the relevant analyzer.

On Thursday, March 1, 2012 at 12:02 PM, jajoria abhishek wrote:

> can i apply analyzer in the nested field document ? what could be the mapping for that?  
> suppose I want to create a mapping
> 
> String map = " {"my" : {"properties" : {"field" : {"type" : "nested"}}}}";
> 
> here is a document which i send in the above mapping index .
> 
> {"raftaar" : [{"name" : "blue","count" : 4},{"name" : "green","count" : 6 }]}
> 
> I want to analyze name field in the standard is it possible to this.  
> A simple example would be worth it .  
> Thank you.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)\
**Post date:** [March 2, 2012, 4:45am UTC](https://discuss.elastic.co/t/no-subject/6850/3 "2012-03-02T04:45:52Z")

</div>

Can I apply nested query in that mapping

On Thu, Mar 1, 2012 at 6:11 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> A "nested" type wraps an object, you need to map the internal relevant  
> "core" type fields with the relevant analyzer.
> 
> On Thursday, March 1, 2012 at 12:02 PM, jajoria abhishek wrote:
> 
> can i apply analyzer in the nested field document ? what could be the  
> mapping for that?  
> suppose I want to create a mapping
> 
> String map = " {"my" : {"properties" : {"field" : {"type" :  
> "nested"}}}}";
> 
> here is a document which i send in the above mapping index .
> 
> {"raftaar" : [{"name" : "blue","count" : 4},{"name" :  
> "green","count" : 6 }]}
> 
> I want to analyze name field in the standard is it possible to this.  
> A simple example would be worth it .  
> Thank you.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)\
**Post date:** [March 2, 2012, 5:22am UTC](https://discuss.elastic.co/t/no-subject/6850/4 "2012-03-02T05:22:23Z")

</div>

Or how can I query that mapping

On Fri, Mar 2, 2012 at 10:15 AM, jajoria abhishek \<  
[jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:

> Can I apply nested query in that mapping
> 
> On Thu, Mar 1, 2012 at 6:11 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > A "nested" type wraps an object, you need to map the internal relevant  
> > "core" type fields with the relevant analyzer.
> > 
> > On Thursday, March 1, 2012 at 12:02 PM, jajoria abhishek wrote:
> > 
> > can i apply analyzer in the nested field document ? what could be the  
> > mapping for that?  
> > suppose I want to create a mapping
> > 
> > String map = " {"my" : {"properties" : {"field" : {"type" :  
> > "nested"}}}}";
> > 
> > here is a document which i send in the above mapping index .
> > 
> > {"raftaar" : [{"name" : "blue","count" : 4},{"name" :  
> > "green","count" : 6 }]}
> > 
> > I want to analyze name field in the standard is it possible to this.  
> > A simple example would be worth it .  
> > Thank you.

---

<div class="post-metadata">

**Author:** ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)\
**Post date:** [March 2, 2012, 9:10am UTC](https://discuss.elastic.co/t/no-subject/6850/5 "2012-03-02T09:10:56Z")

</div>

I got it sir

On Fri, Mar 2, 2012 at 10:52 AM, jajoria abhishek \<  
[jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:

> Or how can I query that mapping
> 
> On Fri, Mar 2, 2012 at 10:15 AM, jajoria abhishek \<  
> [jajoria.abhishek@gmail.com](mailto:jajoria.abhishek@gmail.com)\> wrote:
> 
> > Can I apply nested query in that mapping
> > 
> > On Thu, Mar 1, 2012 at 6:11 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > A "nested" type wraps an object, you need to map the internal relevant  
> > > "core" type fields with the relevant analyzer.
> > > 
> > > On Thursday, March 1, 2012 at 12:02 PM, jajoria abhishek wrote:
> > > 
> > > can i apply analyzer in the nested field document ? what could be the  
> > > mapping for that?  
> > > suppose I want to create a mapping
> > > 
> > > String map = " {"my" : {"properties" : {"field" : {"type" :  
> > > "nested"}}}}";
> > > 
> > > here is a document which i send in the above mapping index .
> > > 
> > > {"raftaar" : [{"name" : "blue","count" : 4},{"name" :  
> > > "green","count" : 6 }]}
> > > 
> > > I want to analyze name field in the standard is it possible to this.  
> > > A simple example would be worth it .  
> > > Thank you.

---

<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, 3:37am UTC](https://discuss.elastic.co/t/no-subject/6850/6 "2017-07-06T03:37:37Z")

</div>


