setExtraSource in Elastic 5.0.0

(Nemo) #1

In Elastic 5.0.0, there is no more setExtraSource to pass the query as String. Is there any alternative for this? How can I pass the query as string?

(Nik Everett) #2

QueryBuilders#wrapperQuery has one for queries. I don't believe there is a thing for the rest of the search as a string any more.

(Nemo) #3

Thank you.
What about replacement for setAggregations?


(Nik Everett) #4

I don't believe there is one.

(system) #5