i'm developing a plugin for elasticsearch 7.8.0 and i'm using the NodeClient to get all the mappings from the cluster on start-up, in order to find indices with "dense_vector" field types.
I am overriding the createComponents() method of the Plugin class since it is the only one that offers me the Client (node client) instance in its signature, but when i make a GetMapping request it throws an exception that "Node Client has not been initialized" and that is to be expected.
my question is if there is a flag like Cluster Health request i.e. "wait_for_status=true" for this kind of requests? for now i run in a while loop and catch the exceptions until it succeeds. (also note that calling Cluster Health fails with the same exception...)
thanks in advance,
-- Tom Elias.