Just to understand, why do you show an example, that will not work either, because it is not using a single line for request meta data and request body?
If this is about the new Java API, can you share the request you actually did as a code snippet as well the exception stack trace?
I believe the question is related to the new msearch with Java API. I am experiencing the same problem. With SearchRequest I can set 'sort' property and also 'searchAfter' property. How can I set these properties in the MSearchRequest? It is not supported in both MultisearchHeader and MultisearchBody.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.