Use the java API client to connect to an ES instance at a given URL

Thanks @swallez .

I'm now trying to configure security for anonymous users: Configuring and debugging anonmyous access to Elasticsearch Doesn't seem that easy to know what's wrong! :wink: