Thanks, this is right API I am looking for but actually, I had seen this one.
My process is like this:
I first create my queries by Elastic test framework and by end of the day I transfer those queries to the real application. Unfortunately, I could not get this high-level rest client from Test-framework.
I want to get this rest client from test framework and code against it and by the end of the day simply copy my code from test classes to the real application without any change.
Test Framework says you can access the TransportClient or NodeClient
I was wondering if there is any way to pass queries built by High-level java rest (SearchSourceBuilder and SearchRequest) to these clients in test framework?