Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get an object #18

Closed
ElPicador opened this issue Nov 30, 2015 · 0 comments
Closed

Get an object #18

ElPicador opened this issue Nov 30, 2015 · 0 comments

Comments

@ElPicador
Copy link
Contributor

You can easily retrieve an object using its objectID and optionally specify a comma separated list of attributes you want:

TODO: // Retrieves all attributes
index.getObject("myID");
// Retrieves only the firstname attribute
index.getObject("myID", Arrays.asList("firstname"));

You can also retrieve a set of objects:

TODO: index.getObjects(Arrays.asList("myObj1", "myObj2"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant