Nader Fares
02/10/2022, 10:03 PMArrayList<Node> nodes = new ArrayList<>();
nodes.add(
new Node(
"http", // For Typesense Cloud use https
"localhost", // For Typesense Cloud use <http://xxx.a1.typesense.net|xxx.a1.typesense.net>
"8108" // For Typesense Cloud use 443
)
);
Configuration configuration = new Configuration(nodes, Duration.ofSeconds(2),"<API_KEY>");
Client client = new Client(configuration);
it is not working for me as the Client
has a package protected constructor.
this is the error I am getting: error: Client(Configuration) is not public in Client; cannot be accessed from outside package
Jason Bosco
02/10/2022, 10:11 PMKishore Nallan
02/11/2022, 2:41 AMNader Fares
02/13/2022, 6:30 PM