Skip to content

new FormatSpecifier option for FieldMapping#1430

Open
mschoch wants to merge 1 commit intomasterfrom
mapping-format-specifier-convert-number-to-text
Open

new FormatSpecifier option for FieldMapping#1430
mschoch wants to merge 1 commit intomasterfrom
mapping-format-specifier-convert-number-to-text

Conversation

@mschoch
Copy link
Copy Markdown
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
Copy Markdown

@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.

🗽

Comment thread mapping/field.go
// It is useful for faceting and sorting queries.
DocValues bool `json:"docvalues,omitempty"`

FormatSpecifier string `json:"format_specifier,omitempty"`
Copy link
Copy Markdown
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