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

ResultSet & Payload return only values. #15

Closed
rochacbruno opened this issue Jan 12, 2016 · 0 comments
Closed

ResultSet & Payload return only values. #15

rochacbruno opened this issue Jan 12, 2016 · 0 comments

Comments

@rochacbruno
Copy link
Contributor

results = Doc.all()

# this only gets specified fields from resultset (query already done)
result.get_values("id")
[123, 456, 789]

# This also sets "_source.fields" property of query to save memory returning only desired fields
payload = Payload(Doc, query=Query.match_all())
payload.get_values("id")
[123, 456, 789]
@rochacbruno rochacbruno changed the title ResultSet, Payload and .search at all should return only values. ResultSet return only values. Jan 13, 2016
@rochacbruno rochacbruno changed the title ResultSet return only values. ResultSet & Payload return only values. Jan 13, 2016
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