# (no subject)

**URL:** <https://discuss.elastic.co/t/no-subject/6862>\
**Category:** Elasticsearch\
**Created:** [March 2, 2012, 5:18am UTC](https://discuss.elastic.co/t/no-subject/6862 "2012-03-02T05:18:43Z")\
**Posts on this page:** 4\
**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 2, 2012, 5:18am UTC](https://discuss.elastic.co/t/no-subject/6862/1 "2012-03-02T05:18:43Z")

</div>

Here is what I am doing . I want to create a mapping which contains a field  
in that there are two multiple fields

String map2 = " {"my" : {"properties" : {"name" :  
{"firstname":{"type":"string","analyzer":"standard"},{"sirname":{"type":"string","analyzer":"english"}}}}}}";

CreateIndexRequest indexRequest = new CreateIndexRequest("testanalyzer");

indexRequest.mapping("my", map2);

client.admin().indices().create(indexRequest).actionGet();

Is this mapping correct because when I create index with this mapping it  
throws

NotSerializableTransportException.

---

<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 3, 2012, 9:53pm UTC](https://discuss.elastic.co/t/no-subject/6862/2 "2012-03-03T21:53:36Z")

</div>

There is another failure hiding somewhere, can you check the logs? How do you create the client?

On Friday, March 2, 2012 at 7:18 AM, jajoria abhishek wrote:

> Here is what I am doing . I want to create a mapping which contains a field in that there are two multiple fields
> 
> String map2 = " {"my" : {"properties" : {"name" : {"firstname":{"type":"string","analyzer":"standard"},{"sirname":{"type":"string","analyzer":"english"}}}}}}";
> 
> CreateIndexRequest indexRequest = new CreateIndexRequest("testanalyzer");
> 
> indexRequest.mapping("my", map2);
> 
> client.admin().indices().create(indexRequest).actionGet();
> 
> Is this mapping correct because when I create index with this mapping it throws
> 
> NotSerializableTransportException.

---

<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 5, 2012, 6:35am UTC](https://discuss.elastic.co/t/no-subject/6862/3 "2012-03-05T06:35:52Z")

</div>

ok ihave got it sir . thanks for your help

On Sun, Mar 4, 2012 at 3:23 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> There is another failure hiding somewhere, can you check the logs? How do  
> you create the client?
> 
> On Friday, March 2, 2012 at 7:18 AM, jajoria abhishek wrote:
> 
> Here is what I am doing . I want to create a mapping which contains a  
> field in that there are two multiple fields
> 
> String map2 = " {"my" : {"properties" : {"name" :  
> {"firstname":{"type":"string","analyzer":"standard"},{"sirname":{"type":"string","analyzer":"english"}}}}}}";
> 
> CreateIndexRequest indexRequest = new CreateIndexRequest("testanalyzer");
> 
> indexRequest.mapping("my", map2);
> 
> client.admin().indices().create(indexRequest).actionGet();
> 
> Is this mapping correct because when I create index with this mapping it  
> throws
> 
> NotSerializableTransportException.

---

<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/6862/4 "2017-07-06T03:37:24Z")

</div>

Closed on July 6, 2017, 3:37am UTC


