When I run this code I got these errors in each of the situations below:
Elasticsearch = 6.8.6
elasticsearch (python) = 7.5.1
RequestError: RequestError(400, 'illegal_argument_exception', 'Rejecting mapping update to [demo] as the final mapping would have more than 1 type: [movies, ratings, users]')
———————————
2)
Elasticsearch = 5.3.0
elasticsearch (python) = 5.4.0
RequestError: TransportError(400, 'search_phase_execution_exception', 'Failed to compile inline script [payload_vector_score] using lang [native]')
————————————
3)
Elasticsearch = 5.3.0
elasticsearch (python) = 7.5.1
TypeError: search() got multiple values for argument 'body'