Rejecting mapping update to [magasin] as the final mapping would have more than 1 type: [magasin, rayon, etagere]


(Alain Ouakbar Tabba Sardinaluile) #1

Hi,

I ve got a big problem :
while doing this command :
php bin/console fos:elastica:populate

i ve got this message :slight_smile:

[Elastica\Exception\ResponseException]
Rejecting mapping update to [magasin] as the final mapping would have more than 1 type: [magasin, rayon, etagere]

how to resolve ?
I m on Ubuntu and ES 6

THANKS FOR YOUR HELP !


(Christian Dahlqvist) #2

From version 6.0 of Elasticsearch, it is no longer possible to create indices with more than one type as types are being deprecated. It seems like your code is trying to add multiple types, which causes the error. I do however not know Elastica, but it looks like there is a version available (6.0.1) that should work with 6.x clusters.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.