Hello Gurus, I am relatively new to the group. I am posting the below query via JAVA API and seeing error as follows. Not sure what i am missing.
Request Body : {"query":{"match_all":{"boost":1.0}}}
Error response:
{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [queryBuilder].","line":1,"col":17}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [queryBuilder].","line":1,"col":17},"status":400}
At the same time if use the same request body in postman, the same works fine.
I am using SearchSourceBuilder to build a match_all query and passing the same as part of the request. Please let me know in case of more details needed.
Thanks for the reply @dadoonet, I am not using client , we have our own implementation of service call. Tied the above and i see below error.
{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a VALUE_NULL in [remoteAddress].","line":1,"col":18}],"type":"parsing_exception","reason":"Unknown key for a VALUE_NULL in [remoteAddress].","line":1,"col":18},"status":400}
I believe SearchRequest is suitable for the Client based request. I am wondering on what to use when custom rest implementation is used (Like cxf, jersey..etc)
I just need to create a body with json data and invoke the service. Hope this helps.
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.