Skip to content
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

add _elastic/_field_caps API #4350

Merged
merged 3 commits into from
Jan 15, 2024
Merged

add _elastic/_field_caps API #4350

merged 3 commits into from
Jan 15, 2024

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Jan 5, 2024

add _elastic/_field_caps API (_elastic/{index}/_field_caps is already supported)
Clear field.indices if it matches global indices

#4298
#3527

@PSeitz PSeitz requested a review from fmassot January 5, 2024 06:29
@@ -79,6 +79,31 @@ pub(crate) fn elastic_bulk_filter(
.and(serde_qs::warp::query(serde_qs::Config::default()))
}

#[utoipa::path(
Copy link
Contributor Author

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

@@ -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<
Copy link
Contributor

@fulmicoton fulmicoton Jan 15, 2024

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?

Copy link
Contributor Author

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)

@PSeitz PSeitz merged commit ee21256 into main Jan 15, 2024
4 checks passed
@PSeitz PSeitz deleted the list_fields_api branch January 15, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants