Skip to content

Enable synthetic source support on constant keyword fields#88603

Merged
romseygeek merged 2 commits intoelastic:masterfrom
romseygeek:synthetic/constant_keyword
Jul 19, 2022
Merged

Enable synthetic source support on constant keyword fields#88603
romseygeek merged 2 commits intoelastic:masterfrom
romseygeek:synthetic/constant_keyword

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

This commit implements synthetic source support on constant keyword fields,
which will now always emit their value as part of the retrieved source.

@romseygeek romseygeek added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v8.4.0 labels Jul 19, 2022
@romseygeek romseygeek self-assigned this Jul 19, 2022
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jul 19, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@romseygeek romseygeek requested review from csoulios and jpountz July 19, 2022 10:32
@sethmlarson sethmlarson added the Team:Clients Meta label for clients team label Jul 19, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/clients-team (Team:Clients)

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'm not qualified to do a full review, but the change makes sense to me and properly tests the corner case when the constant value has not been configured yet, so this is good as far as I can tell.

Copy link
Copy Markdown
Contributor

@csoulios csoulios left a comment

Choose a reason for hiding this comment

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

LGTM

Nice improvement!

@romseygeek romseygeek merged commit 2f5ec51 into elastic:master Jul 19, 2022
@romseygeek romseygeek deleted the synthetic/constant_keyword branch July 19, 2022 16:08
@romseygeek romseygeek mentioned this pull request Jul 20, 2022
50 tasks
giladgal pushed a commit that referenced this pull request Nov 28, 2022
There are at least two data types that are supported AFAIK and are not mentioned:
#88603
#89516
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:Clients Meta label for clients team Team:Search Meta label for search team v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants