# Array of objects with multi\_field

**URL:** <https://discuss.elastic.co/t/array-of-objects-with-multi-field/8822>\
**Category:** Elasticsearch\
**Created:** [August 22, 2012, 9:36pm UTC](https://discuss.elastic.co/t/array-of-objects-with-multi-field/8822 "2012-08-22T21:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith\_Webster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_webster/32/1532_2.png) [@Keith\_Webster](https://discuss.elastic.co/u/Keith_Webster)\
**Post date:** [August 22, 2012, 9:36pm UTC](https://discuss.elastic.co/t/array-of-objects-with-multi-field/8822/1 "2012-08-22T21:36:56Z")

</div>

Hey,

I want to use the multi\_field type in conjunction with an array of objects?

As an example of what I mean: lets say I wanted to store an array of  
authors associated with a book. Each author consists of an id, age and name  
but I'd like to make the name a multi\_field to allow for an analyzed and  
not\_analyzed version of the field.

Is this possible? And if so how would it be mapped?

Thanks

--

---

<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:** [August 23, 2012, 12:13pm UTC](https://discuss.elastic.co/t/array-of-objects-with-multi-field/8822/2 "2012-08-23T12:13:39Z")

</div>

Hiya

> I want to use the multi\_field type in conjunction with an array of  
> objects?

Multi-fields only apply to scalar fields, not to objects. So you can  
make eg the name field in each object multi-field, but not the object  
itself

clint

> As an example of what I mean: lets say I wanted to store an array of  
> authors associated with a book. Each author consists of an id, age and  
> name but I'd like to make the name a multi\_field to allow for an  
> analyzed and not\_analyzed version of the field.
> 
> Is this possible? And if so how would it be mapped?
> 
> Thanks
> 
> --

--

---

<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:15am UTC](https://discuss.elastic.co/t/array-of-objects-with-multi-field/8822/3 "2017-07-06T03:15:21Z")

</div>


