Skip to content

Reject the index_options parameter for numeric fields#26668

Merged
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-21475
Sep 25, 2017
Merged

Reject the index_options parameter for numeric fields#26668
cbuescher merged 2 commits intoelastic:masterfrom
cbuescher:fix-21475

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Numeric fields no longer support the index_options parameter. This changes the parameter
to be rejected in numeric field types after it was deprecated in 6.0.

Closes #21475

@cbuescher cbuescher added :Search Foundations/Mapping Index mappings, including merging and defining field types review v7.0.0 labels Sep 15, 2017
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will open a separate PR with deprecation logging instead of the error against the 6.x branches.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I opened #26672 for the deprecation.

@cbuescher cbuescher requested a review from jpountz September 20, 2017 20:07
Copy link
Copy Markdown
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

I left a suggestion.

Copy link
Copy Markdown
Contributor

@jpountz jpountz Sep 25, 2017

Choose a reason for hiding this comment

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

Could we override the indexOptions method in the number field builder instead of introducing a new method?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, I changed this. Will wait for another CI run before I merge.

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

Labels

>breaking :Search Foundations/Mapping Index mappings, including merging and defining field types v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants