compose / transporter

Sync data between persistence engines, like ETL only not stodgy
https://github.com/compose/transporter/issues/523
BSD 3-Clause "New" or "Revised" License
1.45k stars 213 forks source link

How to custom field mapping info, for example,custom my specify analyzer in a field. #474

Closed bambooj closed 1 year ago

bambooj commented 6 years ago

When I sync my data from MongoDB to Elasticsearch ,I want to add a mapping in my index. I found:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Mapper for [content] conflicts with existing mapping in other types:\n[mapper [content] has different [analyzer]]"}],"type":"illegal_argument_exception","reason":"Mapper for [content] conflicts with existing mapping in other types:\n[mapper [content] has different [analyzer]]"},"status":400}

Because the content field has been setted defualt: ignore_above:256. Like this: $ curl localhost:9200/poetry/_mapping?pretty { "poetry" : { "mappings" : { "fulltext" : { "properties" : { "content" : { "type" : "text", "ignore_above" : 256 } } } } } }

charmgil commented 5 years ago

Bump, as I have the same issue. Please let me know if you have resolved the issue. Thx a lot!