Can not find import org.elasticsearch.transport.client.PreBuiltTransportClient;

Hi, please see the picture, I used mvn to download all the .jars, but when I import below, it can't find the depency, could you please help.
Many Thanks.

import org.elasticsearch.transport.client.PreBuiltTransportClient;
es

Probably something wrong on your side. I can see it here: https://repo1.maven.org/maven2/org/elasticsearch/client/transport/6.4.3/

Thank you very much.
Sorry for misleading, I didn't decribe it clear, I can down load all the jars, but in the code when I put :
import org.elasticsearch.transport.client.PreBuiltTransportClient;
it gives "The import org.elasticsearch.transport.client cannot be resolved".

This class seems to exist to me: https://github.com/elastic/elasticsearch/blob/6.4/client/transport/src/main/java/org/elasticsearch/transport/client/PreBuiltTransportClient.java

Not sure what is happening.

Thanks.

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