-
Notifications
You must be signed in to change notification settings - Fork 455
add _elastic/_field_caps API #4350
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
Conversation
@@ -79,6 +79,31 @@ pub(crate) fn elastic_bulk_filter( | |||
.and(serde_qs::warp::query(serde_qs::Config::default())) | |||
} | |||
|
|||
#[utoipa::path( |
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 just moved this from below, to group the requests
2f1bcce
to
ae3cce0
Compare
ae3cce0
to
8ad9336
Compare
8ad9336
to
f3e3c55
Compare
@@ -118,6 +143,22 @@ pub(crate) fn elastic_index_field_capabilities_filter() -> impl Filter< | |||
.and(json_or_empty()) | |||
} | |||
|
|||
#[utoipa::path(get, tag = "Metadata", path = "/_field_caps")] | |||
pub(crate) fn elastic_field_capabilities_filter() -> impl Filter< |
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.
What is this about?
Can you comment?
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.
it handles path "/_field_caps" (same as the other methods in this file)
add
_elastic/_field_caps
API (_elastic/{index}/_field_caps
is already supported)Clear field.indices if it matches global indices
#4298
#3527