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


(jianfeng) #1

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


(David Pilato) #2

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


(jianfeng) #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".


(David Pilato) #4

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.


(jianfeng) #5

Thanks.


(system) #6

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