-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New queryable "_tier" metadata field #69288
Conversation
Pinging @elastic/es-search (Team:Search) |
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
2a6fedc
to
e86181e
Compare
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
b5570c7
to
d5c838d
Compare
@jpountz I commented out the familyTypeName support for now - was breaking some SQL test expectations |
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
I wonder if the approach taken here allows for sorting by "_tier" too? If so, it would be sort of nice to let the order be "content", "hot", "warm", "cold", "frozen", regardless of alphabetical ordering. Not sure I have a killer case for this though. |
This PR has two dependencies:
With regards to 1) I suspect we can merge this PR minus sort/aggs support and save for another issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments but the logic looks good to me.
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/index/mapper/ConstantFieldType.java
Outdated
Show resolved
Hide resolved
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
...ta-streams/src/main/java/org/elasticsearch/xpack/datastreams/mapper/DataTierFieldMapper.java
Outdated
Show resolved
Hide resolved
75b416b
to
dca2ded
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left minor comments, LGTM otherwise.
...main/java/org/elasticsearch/xpack/cluster/routing/allocation/mapper/DataTierFieldMapper.java
Show resolved
Hide resolved
...main/java/org/elasticsearch/xpack/cluster/routing/allocation/mapper/DataTierFieldMapper.java
Show resolved
Hide resolved
…es on the roles defined (explicitly or implicitly)for a node. Closes elastic#68135
New metadata field, like the "_index" field that supports term, terms and wildcard queries on the roles defined (explicitly or implicitly)for a node.
Will add tests if we think this is the way forward
Closes #68135