You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After publishing of config file and running import command, there is an error that is probably caused by deprecated usage of type attribute. As it can be seen at official elasticsearch docs.
To Reproduce
Steps to reproduce the behavior:
Publish config with php artisan vendor:publish --tag config
Run indexing command php artisan scout:import
Get error: Root mapping definition has unsupported parameters
Expected behavior
Successful indexing
Additional context
I also tried to remove type attribute from default mapping, what seems to solve unsupported parameters error, however it yielded another error: java.util.ArrayList cannot be cast to java.util.Map. According to google, that error often comes up when some empty field is being passed into elasticsearch. So it looks like there needs some other alteration in the config structure to be done.
What is more, when I have removed overall mappings part, indexing has been finished successfully without any problems. I am using v7.6.1 of elasticsearch-php.
Original config that resulted in unsupported parameters error:
Describe the bug
After publishing of config file and running import command, there is an error that is probably caused by deprecated usage of type attribute. As it can be seen at official elasticsearch docs.
To Reproduce
Steps to reproduce the behavior:
php artisan vendor:publish --tag config
php artisan scout:import
Root mapping definition has unsupported parameters
Expected behavior
Successful indexing
Additional context
I also tried to remove type attribute from default mapping, what seems to solve unsupported parameters error, however it yielded another error:
java.util.ArrayList cannot be cast to java.util.Map
. According to google, that error often comes up when some empty field is being passed into elasticsearch. So it looks like there needs some other alteration in the config structure to be done.What is more, when I have removed overall mappings part, indexing has been finished successfully without any problems. I am using v7.6.1 of elasticsearch-php.
Original config that resulted in
unsupported parameters error
:Edited config that resulted in
java.util.ArrayList
error:Config that resulted in successful indexing:
The text was updated successfully, but these errors were encountered: