(no subject)

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.

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.

ok ihave got it sir . thanks for your help

On Sun, Mar 4, 2012 at 3:23 AM, Shay Banon 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.