We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting this error when I try to populate:
[Elastica\Exception\ResponseException] Rejecting mapping update to [app] as the final mapping would have more than 1 type: [item, shipment]
This is the configuration I have:
$container->loadFromExtension('fos_elastica', [ 'default_manager' => 'orm', 'clients' => [ 'default' => [ 'host' => '127.0.0.1', 'port' => 9200, 'logger' => '%kernel.debug%' ] ], 'indexes' => [ 'app' => [ 'types' => [ 'shipment' => [ 'persistence' => [ 'model' => Shipment::class, ], 'serializer' => [ 'groups' => ['elastica'], 'serialize_null' => false ] ], 'item' => [ 'persistence' => [ 'model' => Item::class, ], 'serializer' => [ 'groups' => ['elastica'], 'serialize_null' => false ] ] ] ] ], ]);
The text was updated successfully, but these errors were encountered:
@DONSA, you cannot have several types within a single index anymore, at least since 6.x. Workaround would be that you define a type per index:
'indexes' => [ 'app_shipment' => [ 'types' => [ '_doc' => [ 'persistence' => [ 'model' => Shipment::class, ], 'serializer' => [ 'groups' => ['elastica'], 'serialize_null' => false ] ] ] ], 'app_item' => [ 'types' => [ '_doc' => [ 'persistence' => [ 'model' => Item::class, ], 'serializer' => [ 'groups' => ['elastica'], 'serialize_null' => false ] ] ] ] ]
Sorry, something went wrong.
Ok, thanks. I think this should be referenced in the documentation.
No branches or pull requests
I'm getting this error when I try to populate:
This is the configuration I have:
The text was updated successfully, but these errors were encountered: