私の symfony2 / doctrine 2 アプリケーションで、 fos:elastica:populate を実行するとエラーが発生します:
[Elastica\Exception\Bulk\ResponseException]
1 つまたは複数の一括リクエスト アクションでエラーが発生しました:
インデックス: /foodmeup/offer/4 により MapperParsingException [[res ponsibilities] の解析に失敗しました]; ネスト: ElasticsearchIllegalArgumentException[不明なプロパティ [0]];
私の設定は次のとおりです。 type: string を実際には教義のjson配列である責任に設定しました:
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 }
そして私のエンティティマッピング:
/**
* @ORM\Column(type="json_array", nullable=false)
*/
protected $responsibilities = array();
これを解決するにはどうすればよいですか? 「文字列」の代わりに「〜」を試してみましたが、同じ問題が発生し、責任の構成行を削除するだけでうまく機能します。
ありがとう !