Hi, I am looking for ways to convert json string from ES to searchresponse object.
Thanks for your help in advance.
Hi, I am looking for ways to convert json string from ES to searchresponse object.
Thanks for your help in advance.
What is a searchresponse object?
SearchResponse is object which we get after executing a query, I am written a plugin. I am calling the plugin using http client code. Please let me know if there is a way to get back searchresponse object from json string.
If you are writing a Java Plugin, you should not worry about JSON and just use Java Objects.
Can you describe a bit more what you are doing and what is your workflow?
I have registered a handle for controller, and using the http requests to get to the handle request section. I am trying to add social ranking to the returned scores from ES. after Rescoring I am sending the results back to the client, there I need to convert the json string to SearchResponse.
I could not implement transport client as my plugin code is server side.
Well we have decided on consuming data in json object.
© 2020. All Rights Reserved - Elasticsearch
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.