Elasticquent
Elasticquent copied to clipboard
Mapping parsing exception
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?
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?
this problem because of this problem #127