Hello Experts!
We are in a process of migrating from TransportClient (now, removed) to RestHighLevelClient.
We use custom plugin for some functionalities.
As per the TransportClient we are initializing it like below. Note that we also use Custom plugin while initialization.
TransportClient transportClient = new PreBuiltTransportClient(builder.build(),
CustomPlugin.class);
I am seeking help to understand how to do that with RestHighLevelClient?
Additional information that may help
CustomPlugin is a plugin used especially for our use case and the class skeleton looks something like this:-
public class CustomPlugin extends Plugin implements SearchPlugin {
@Override
public ArrayList<AggregationSpec> getAggregations() {
//some logic
}
}