Closed TobiasLeo closed 6 years ago
Hi @TobiasLeo You can use the JsonMapper : https://github.com/graphaware/neo4j-to-elasticsearch/blob/master/docs/json-mapper.md
Much more flexible and fits almost all the needs for the replication.
Thanks @ikwattro, that's exactly what I needed! Looks powerful enough to handle a lot of different situations and solves my issue.
First off, this is not a problem in versions of Elasticsearch prior to version 6.
Problem: With only one label in the Neo4j database automatic indexing with Elasticsearch works well and creates a proper mapping for it and any subsequent properties, but once more labels are added it fails to add anything more to any Elasticsearch indices or create Mappings for other labels. This error shows up in the log (full stacktrace at the bottom of the issue):
java.lang.IllegalArgumentException: Rejecting mapping update to [neo4j-index-node] as the final mapping would have more than 1 type: [LabelA, LabelB]
Since there are changes to indices from Elasticsearch 6 (can only have a single type) I am curious about if neo4j-to-elasticserach is supposed to be able to work with it.
Question: Is there any configuration or work-around that can be used to circumvent these mapping problems?
Applications:
Plugins:
Config
Error in log: