Skip to content

Commit

Permalink
Merge pull request searchbox-io#475 from eliasgomes/patch-1
Browse files Browse the repository at this point in the history
Simple correction in the documentation
  • Loading branch information
ferhatsb authored Mar 23, 2017
2 parents 23eb0dc + a43b535 commit bc67ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Result can be cast to List of domain object;

``` java
SearchResult result = client.execute(search);
List<SearchResult.Hit<Article, Void>> hits = searchResult.getHits(Article.class);
List<SearchResult.Hit<Article, Void>> hits = result.getHits(Article.class);
// or
List<Article> articles = result.getSourceAsObjectList(Article.class);
```
Expand Down

0 comments on commit bc67ab5

Please sign in to comment.