deleteMapping(static::index(), static::type()); $command->setMapping(static::index(), static::type(), [ static::type() => [ "_id" => ["path" => "id", "index" => "not_analyzed", "store" => "yes"], "properties" => [ "name" => ["type" => "string", "index" => "not_analyzed"], "category_id" => ["type" => "integer"], ] ] ]); } }