Closed SobhieSad closed 3 years ago
Are you sure the index does not exist already? Because it looks like you are updating an existing index that already has a mapping (questionTypeFinal
). If the extension is properly configured for ES6+ it will attempt to create the default mapping (_doc
).
Can you make sure that the index does not already exist? Try $command->deleteIndex(self::index())
before you run createIndex()
.
Also, is it possible that your model has a type()
method that returns questionTypeFinal
?
Closing due to inactivity.
Hi, @samdark I have the following code for creating the index:
where the mapping code is this:
but I got this error :
I don't understand how it sees 2 types even I pass one only