Skip to content
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

new FormatSpecifier option for FieldMapping #1430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mschoch
Copy link
Contributor

@mschoch mschoch commented Jul 20, 2020

This new FormatSpecifier option allows us to convert numeric
values into strings suitable for indexing in a text field.

Format specifiers are relatively limited, but do allow for basic
conversion, as well as fixed width padding.

This new FormatSpecifier option allows us to convert numeric
values into strings suitable for indexing in a text field.

Format specifiers are relatively limited, but do allow for basic
conversion, as well as fixed width padding.
Copy link
Contributor

@sreekanth-cb sreekanth-cb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗽

@@ -59,6 +59,8 @@ type FieldMapping struct {
// DocValues, if true makes the index uninverting possible for this field
// It is useful for faceting and sorting queries.
DocValues bool `json:"docvalues,omitempty"`

FormatSpecifier string `json:"format_specifier,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some commentary here that "%f" is the thing to use for correct translation of numeric (float) values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants