In my symfony2 / doctrine 2 application, I get an error when running fos:elastica:populate :
[Elastica\Exception\Bulk\ResponseException]
Error in one or more bulk request actions:
index: /foodmeup/offer/4 caused MapperParsingException[failed to parse [res ponsibilities]]; nested: ElasticsearchIllegalArgumentException[unknown prop erty [0]];
My config is the following, I have set type: string to responsibilities which is actually a doctrine json array:
offer:
mappings:
name: { type: string, boost: 10}
content: { type: string }
responsibilities: { type: string }
skills:
type: "nested"
properties:
name: { type: string }
contractType:
type: "nested"
properties:
name: { type: string }
position:
type: "nested"
properties:
name: { type: string, boost: 10 }
And my entity mapping :
/**
* @ORM\Column(type="json_array", nullable=false)
*/
protected $responsibilities = array();
What can I do to resolve this ? I have tried with "~" instead of "string" but the same problem arises and when I just remove the config line for responsibilities, it works well.
Thanks !