Force merging

Hi,

When i try to index my datas elastic return this error message :
MapperParsingException[Failed to parse [foo.strBar]]; nested:
NumberFormatException[For input string: "6.0,3.0"];

I try to change mapping on the existing type by adding
"foo.strBar":{"type":"string"}, and i have this following error :
MergeMappingException[Merge failed with failures {[mapper [foo.strBar]
of different type, current_type [double], merged_type [string]]}]

When i make a GET on my mapping there's no entry for foo.strBar. I try
to cache
/clear but not better.

Is there a way to force the mapping or change it "hotswap" without
deleting it, like "alter table" for sql?

--

Gabriel TESSIER

Cordialement

No. As far as I know.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 11 juin 2012 à 10:53, vtech gabriel@vtech.fr a écrit :

Hi,

When i try to index my datas elastic return this error message : MapperParsingException[Failed to parse [foo.strBar]]; nested: NumberFormatException[For input string: "6.0,3.0"];

I try to change mapping on the existing type by adding "foo.strBar":{"type":"string"}, and i have this following error :
MergeMappingException[Merge failed with failures {[mapper [foo.strBar] of different type, current_type [double], merged_type [string]]}]

When i make a GET on my mapping there's no entry for foo.strBar. I try to cache/clear but not better.

Is there a way to force the mapping or change it "hotswap" without deleting it, like "alter table" for sql?

--

Gabriel TESSIER

Cordialement

Thanks! Merci.

Is there a way to set all "type" : "string" to all new fields not
defined in mapping to "string".

--
Gabriel TESSIER

Cordialement

Le 11/06/2012 11:06, David Pilato a écrit :

No. As far as I know.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 11 juin 2012 Ã 10:53, vtech <gabriel@vtech.fr
mailto:gabriel@vtech.fr> a écrit :

Hi,

When i try to index my datas elastic return this error message :
MapperParsingException[Failed to parse [foo.strBar]]; nested:
NumberFormatException[For input string: "6.0,3.0"];

I try to change mapping on the existing type by adding
"foo.strBar":{"type":"string"}, and i have this following error :
MergeMappingException[Merge failed with failures {[mapper
[foo.strBar] of different type, current_type [double], merged_type
[string]]}]

When i make a GET on my mapping there's no entry for foo.strBar. I
try to cache
/clear but not better.

Is there a way to force the mapping or change it "hotswap" without
deleting it, like "alter table" for sql?

--

Gabriel TESSIER

Cordialement

You can use the dynamic_template under the root object mapper.

On Mon, Jun 11, 2012 at 12:08 PM, vtech gabriel@vtech.fr wrote:

Thanks! Merci.

Is there a way to set all "type" : "string" to all new fields not defined
in mapping to "string".

--
Gabriel TESSIER

Cordialement

Le 11/06/2012 11:06, David Pilato a écrit :

No. As far as I know.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 11 juin 2012 à 10:53, vtech gabriel@vtech.fr a écrit :

Hi,

When i try to index my datas elastic return this error message :
MapperParsingException[Failed to parse [foo.strBar]]; nested:
NumberFormatException[For input string: "6.0,3.0"];

I try to change mapping on the existing type by adding
"foo.strBar":{"type":"string"}, and i have this following error :
MergeMappingException[Merge failed with failures {[mapper [foo.strBar] of
different type, current_type [double], merged_type [string]]}]

When i make a GET on my mapping there's no entry for foo.strBar. I try to
cache
/clear but not better.

Is there a way to force the mapping or change it "hotswap" without
deleting it, like "alter table" for sql?

--

Gabriel TESSIER

Cordialement