-
Notifications
You must be signed in to change notification settings - Fork 801
Support for constant_keyword #1373
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
Comments
Creating a custom field using: class ConstantKeyword(Keyword):
name = 'constant_keyword' and then mapping.field('service_name', ConstantKeyword(value=svc_name)) Seems to result in the correct mapping being applied. Not sure if this is the right way to do it. From elastic/kibana#52635, it turns out Kibana does not yet support the type either, so it is not that useful to us at the moment. |
Thanks for identifying this, would you be up to creating a PR with the feature and a test case? |
@sethmlarson I'm definitely willing to contribute! I'll try to find some time this week. |
@beanaroo - I'm also willing to help! It's your find, so I'll let you take the lead on this. But if you want my help (or if you can't find time to whip up a PR), feel free to ping me. |
would be nice to have some documentation for this field |
When trying to add a field of type constant_keyword to a Mapping, an exception is returned:
The text was updated successfully, but these errors were encountered: