Skip to content

support _source_excludes,_source_includes, extra_filters in _msearch ES API #4696

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

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

PSeitz
Copy link
Collaborator

@PSeitz PSeitz commented Mar 7, 2024

closes #4695

@PSeitz PSeitz requested a review from fmassot March 7, 2024 09:54
@fmassot fmassot requested a review from trinity-1686a March 7, 2024 11:15
@@ -0,0 +1,23 @@
endpoint: "_msearch"
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add a test for source_include/source_exclude. Currently they don't seem to work. I think because of convert_to_es_search_response(_, _, None, None) in rest_handler.rs:751 (gh won't let me add a comment there because there are no changes arround)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, it's fixed now. added a test

Copy link
Contributor

@trinity-1686a trinity-1686a left a comment

Choose a reason for hiding this comment

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

LGTM

@PSeitz PSeitz merged commit c2fe2af into main Mar 7, 2024
@PSeitz PSeitz deleted the extend_msearch branch March 7, 2024 13:02
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.

Add query params extra_filters and _source_excludes to _msearch endpoint
2 participants