when no specific internal source builder is constructed, don't set it, so setting raw source will not get override
This commit is contained in:
parent
d4b6753d93
commit
211176d10e
|
@ -716,7 +716,9 @@ public class SearchRequestBuilder extends BaseRequestBuilder<SearchRequest, Sear
|
|||
|
||||
@Override
|
||||
protected void doExecute(ActionListener<SearchResponse> listener) {
|
||||
request.source(sourceBuilder());
|
||||
if (sourceBuilder != null) {
|
||||
request.source(sourceBuilder());
|
||||
}
|
||||
client.search(request, listener);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue