Skip to content

Conversation

@albertzaharovits
Copy link
Contributor

This is just a tiny refactoring to expose the mapped type of the @timestamp field.

@albertzaharovits albertzaharovits self-assigned this Nov 3, 2025
@albertzaharovits albertzaharovits added :Search/Search Search-related issues that do not fall into other categories >refactoring v9.3.0 labels Nov 3, 2025
Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Albert

* skipper, this returns the field type for it.
*/
public boolean hasTimestampField() {
public DateFieldType getTimestampFieldType() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we mark the method as @Nullable so callers get some indication of the result needing a null check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good point, I've pushed 14a7f67

@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Nov 3, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@albertzaharovits
Copy link
Contributor Author

Thank you @andreidan !

@albertzaharovits albertzaharovits merged commit 42607fc into elastic:main Nov 3, 2025
34 checks passed
@albertzaharovits albertzaharovits deleted the expose_timestamp_field_mapping branch November 3, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants