-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make mappings work #167
Comments
@alesanmed Can you try the following:
I removed the |
@siddharthlatest Thanks for your answer, just for the records, my transform file now looks like: t.Source('source', source, '/movements/')
.Mapping({
"properties": {
"movement": {
"properties": {
"amount": { "type": "float" }
}
}
}
})
.Transform(otto({'filename': '/home/ubuntu/project-metrics/import-process/transforms/movements.js'$
.Save('sink', sink, '/.*/'); And the index mapping in elasticsearch: {
"mapping": {
"properties": {
"movement": {
"properties": {
"amount": {
"type": "long"
}
}
}
}
}
} I've run the abc import command with log level debug and I extracted a sample document from the importing proccess: {"movement.__v":0,"movement._id":"5d3...","movement.afterBalance":0,"movement.amount":156, ... } As you see, I'm prepending the t.Source('source', source, '/movements/')
.Mapping({
"properties": {
"movement.amount": {
"type": "float"
}
}
})
.Transform(otto({'filename': '/home/ubuntu/project-metrics/import-process/transforms/movements.js'$
.Save('sink', sink, '/.*/'); But I'm having the same result. |
Any news on this @siddharthlatest? Thank you very much for your time. |
@alesanmed Hi, I am having the same issue, have you figured out a way to make this work? |
@zooxmusic Nope... still having the same problem |
I'm using abc version 1.0.0-alpha.0 and Elasticsearch version 7.2.
This is probably not a problem with abc itself but with my understanding of the documentation (or my lack of understanding to be precise).
I'm trying to force a field to be a float instead of a long. My transform file is the following one:
And my abc transform command:
My index is called index.movements and every field is called movement.[field_name]. When I run the command and look in elasticsearch the index.movements index mapping I get this:
Probably I'm missing something but I can't figure out what. Thank you all in advance.
The text was updated successfully, but these errors were encountered: