For fetching data from multiple indices, i am trying to use SearchResponse client. But while creating transportClient i get instantiate error. What wrong i am doing?
Following is my code snippet:
public void setup() throws Exception {
Client client = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress(
"localhost", 9300));}
I am trying to perform multiple indices search and i don't find anything like prespareSearch() in rest high level client. But you can suggest me what i can use in restHighLevelClient. I followed [https://www.elastic.co/guide/en/elasticsearch/client/java-api/6.2/java-search.html] link and got to know that prepare search only works with transport client.
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.