Search API example

I am new to search so just started learning. I am trying to connect to an existing node and do a basic search.

	RestHighLevelClient client = new RestHighLevelClient(
			RestClient.builder(new HttpHost("localhost", 9200, "http")));

But the examples that I see is from Node instance. I am not doing unit testing, want to connect to an existing node.

So let say I want to search for error logs with messages having 500 error code like logLevel: ERROR and logMessage: *500* So what should the JAVA code for query look like please ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.