Elasticquent icon indicating copy to clipboard operation
Elasticquent copied to clipboard

Mapping parsing exception

Open omarsafwany opened this issue 9 years ago • 2 comments
trafficstars

I tried to index all the data as follows: $compounds = Compound::with('developer', 'features', 'property_types.properties', 'neighborhoods')->get(); foreach($compounds as $compound){ $compound->addToIndex(); $this->info($compound->name.' - '. $compound->address); echo"\r\n"; } I keep getting the following: [Elasticsearch\Common\Exceptions\BadRequest400Exception] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],"type":"mapper_parsing_exception","reason":"failed to parse"," caused_by":{"type":"illegal_argument_exception","reason":"mapper [property_ types.properties.map_y] of different type, current_type [long], merged_type [double]"}},"status":400} property_ types.properties.map_y is type double.

Is there a problem with indexing the double or what?

omarsafwany avatar Sep 29 '16 12:09 omarsafwany

Hi,

I think that I have the same problem. Is it possible that you try to put an integer in map_y? Like converting 10.0 to json ends up in 10 in JSON and throws an error in elasticsearch?

fvosberg avatar Jan 25 '17 18:01 fvosberg

this problem because of this problem #127

chadidi avatar Dec 25 '17 23:12 chadidi