The java SDK is actually completely unstable and you have to consider this library as it is, unstable.
In the example below we get the singleton instance for UpCloo manager.
Manager manager = Manager.getInstance();
manager.setCredential("username", "password", "sitekey");
Consider that document
is an instace of com.upcloo.client.model.indexer.Doc
.
Doc document = new Doc();
document.setId("35897");
document.setTitle("This is the title");
manager.index(document);
Consider that documents
is an instance of com.upcloo.client.model.getter.Docs
Docs documents = manager.get("35897");
This library needs different library listed below.
- Apache HTTP Client
Under lib
folder you can see the complete dependency list.
If you want run tests simply using junit
. All tests are
under tests
folder.