-
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
Translate for multi values fields #19
Labels
Comments
Mostafa-Ashmawy
changed the title
Translate for nested documents
Translate for multi field values
Mar 3, 2016
Mostafa-Ashmawy
changed the title
Translate for multi field values
Translate for multi values fields
Mar 3, 2016
Multi-value field - arrays - support would be unreal. |
Looks like it's addressed in #15 but has been stale for some time. |
Seems like this config would express the intent:
I can implement this and I think this is useful in the other enrichment filters too. |
Closing, will be covered with PR #67 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mainly we are trying to add a field productName to a document before indexing it based on the document productId using the translate plugin and a yaml dictionary file containing a mapping (productId:productName). We couldn't apply the filter to all the elements of that field.
We would like to have something like that where i is [0, basketInfos.length]
translate{
field => "[basketInfos][i][productId]"
destination => "[basketInfos][i][productName]"
dictionary_path=> "/home/ms/logstash-2.1.0/dictionary.yaml"
exact => true
}
And this is a snippet of the dictionary.yaml file
"378801434": Product-111
"417509627": Product-112
"ov393627130": Product-113
The text was updated successfully, but these errors were encountered: