-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix source filter setup in multiget requests #1659
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
Comments
Thanks for finding this. This is indeed a bug that the values that are set in the |
sothawo
added a commit
to sothawo/spring-data-elasticsearch
that referenced
this issue
Jan 24, 2021
Implemented in master branch and backported to 4.1.x and 4.0.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created
NativeSearchQuery
usingNativeSearchQueryBuilder
, but when I usedelasticsearchRestTemplate.multiGet
method , I found that themultiGet
method discarded thefields
attribute.In
ElasticsearchRestTemplate
, I see thatRequestFactory
is used to createMultiGetRequest
objects.In RequestFactory, I saw the use of the multiGetRequestBuilder method to create and initialize the MultiGetRequest object.
But after the getMultiRequestItems method is executed, the sourceFilter property set in the Query object is not set in the MultiGetRequest object, and then multiGetRequest returns the MultiGetRequest object.
The following is my code. In this code, the withFields method is invalid. After execution, the result I get is all fields.
Please help me to solve this problem, thanks
The text was updated successfully, but these errors were encountered: