TransportClient builder query

Hi Team,

SearchResponse res = client.prepareSearch("logstash_stack_index")
.setTypes("logs")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(QueryBuilders.matchQuery("Errors", "org.springframework.jdbc.CannotGetJdbcConnectionException"))
.execute()
.actionGet();

By using above code snippet i am searching index hits , which contains errorlog of org.springframework.jdbc.CannotGetJdbcConnectionException.

If i want to matchquery for 2 more errors, is there any way to give OR condition ?? or should i use if case for searchquery.

Can you please suggest for the same.

Thank you

Solved

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