Skip to content

Conversation

@jdconrad
Copy link
Contributor

@jdconrad jdconrad commented May 26, 2023

This change adds support for unsigned long fields (and any fields that can provide numeric data) to use decay functions as described by (#89603). This allows mapped fields developed as plugins to also have access to this set of functions provided they return IndexNumericFieldData from getForField.

Closes #89603.

@jdconrad jdconrad added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v8.9.0 labels May 26, 2023
@jdconrad jdconrad requested a review from mayya-sharipova May 26, 2023 20:36
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label May 26, 2023
@elasticsearchmachine
Copy link
Collaborator

Hi @jdconrad, I've created a changelog YAML for you.


@Override
public double evaluate(double value, double scale) {
// throw new IllegalArgumentException("HELLO: [" + value + "] [" + scale + "]");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove this line ;) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, yes! Thanks for catching this 🤦 .

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

Thanks @jdconrad, LGTM, except we need to remove a comment line.

@jdconrad
Copy link
Contributor Author

@mayya-sharipova Thank you for the review. I will commit as soon as CI passes.

@elasticsearchmachine
Copy link
Collaborator

Hi @jdconrad, I've updated the changelog YAML for you.

@jdconrad jdconrad merged commit 6cb97a5 into elastic:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v8.9.0

3 participants