Skip to content

Commit 683dc3e

Browse files
graytaylor0Jonah Calvo
authored andcommitted
Fix query size for query_lookup to return more than 10 documents (opensearch-project#5807)
Signed-off-by: Taylor Gray <tylgry@amazon.com> Signed-off-by: Jonah Calvo <caljonah@amazon.com>
1 parent f324ef1 commit 683dc3e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/index/ExistingDocumentQueryManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ private MsearchRequest buildMultiSearchRequest() {
172172
m.searches(s -> s
173173
.header(h -> h.index(index))
174174
.body(b -> b
175+
.size(values.size())
175176
.source(source -> source.filter(f -> f.includes(queryTerm)))
176177
.query(Query.of(q -> q
177178
.terms(TermsQuery.of(t -> t

0 commit comments

Comments
 (0)