Skip to content

Commit

Permalink
add suppoet query source json in MultiSearchBuilderFn #2563 (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxycomeon committed Dec 6, 2021
1 parent a652e6f commit bec83c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ object MultiSearchBuilderFn {
}
header.endObject()

val body = SearchBodyBuilderFn(search)
Seq(header.string(), body.string())
val body = search.source.getOrElse(SearchBodyBuilderFn(search).string())
Seq(header.string(), body)

}.mkString("\n") + "\n"
}
Expand Down

0 comments on commit bec83c3

Please sign in to comment.