Hi All,
I have a GeoNetwork installation that has been upgraded from GeoNetwork 3.10.x to 4.2.x, and a number of records are causing indexing errors and warnings in ElasticSearch. Some are clear and fixable, and display OK in the catalogue, but I have a group of records that don’t display at all.
The error that I see in the admin console → statistics and status tab is this:
ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse]]; nested: ElasticsearchException[Elasticsearch exception [type=class_cast_exception, reason=class org.elasticsearch.index.mapper.KeywordFieldMapper cannot be cast to class org.elasticsearch.index.mapper.ObjectMapper (org.elasticsearch.index.mapper.KeywordFieldMapper and org.elasticsearch.index.mapper.ObjectMapper are in unnamed module of loader ‘app’)]];
I also see this at the base of the record in display view (where none of the actual metadata displays).
In the elasticsearch logs (I’ve tested this with 7.11.1 and 7.12.1) I can see the record, and I can see an index error, but it’s related to something else- namely an empty temporal extent.
Frustratingly, if I download the record and reimport it with a new UUID but no other changes, then the newly imported record displays just fine.
I can see from the error that the keywords seem to be the problem, but I can’t see what’s wrong with the record, or any common factor between the records where this problem occurs (approx 200 records from 1200).
If someone could point me in the right direction that would be wonderful!
Thanks
Jo
···
Jo Cook
t:+44 7930 524 155 | twitter:@archaeogeek | mastodon:@archaeogeek@anonymised.com.
Please note that currently I do not work on Friday afternoons. For urgent responses at that time, please visit support.astuntechnology.com or phone our office on 01372 744009