Open danstoner opened 2 years ago
Setting include_type_name=True
in all put_mapping
and get_mapping
function calls does get past the above error.
We have to create the test index and PUT the mappings to run the test suite against an empty ES.
http PUT localhost:9200/idigbio-test
idb index full
Fixed some minor compatibility issues (like changing string
to text
in the mappings).
But finally we run headlong into the type issue trying to post the mappings:
RequestError: RequestError(400, u'illegal_argument_exception', u'Rejecting mapping update to [idigbio-test] as the final mapping would have more than 1 type: [publishers, recordsets]')
Without the mappings we end up with the following failure while running the test suite:
NotFoundError(404, u'type_missing_exception', u'type[[records]] missing')
Started some work to test compatibility PR #212 ... but seems like making largescale changes in the Python 2 codebase is a bad idea... maybe this needs to happen after the Python3 conversion. Or we need some different strategy than having everything talk to the same Elasticsearch cluster / version.
With Elasticsearch started via:
When running pytest:
See: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html