Elasticsearch isn't always smart about returning an array type field as an array, when field params are specified.
For instance, if you try to search for an array type field such as "provides", and a result only has a single value, Elasticsearch can return this field as a scalar. This breaks the type checking in MetaCPAN::Client::Role::Entity.
Elasticsearch isn't always smart about returning an array type field as an array, when field params are specified.
For instance, if you try to search for an array type field such as "provides", and a result only has a single value, Elasticsearch can return this field as a scalar. This breaks the type checking in MetaCPAN::Client::Role::Entity.
Maybe the type checking should gracefully promote scalars to arrays? Not sure what the best solution would be here.