Skip to content

Commit 8d05ffc

Browse files
committed
Merge pull request #50 from hossein761/master
Added byIdAsync to Finder in Index
2 parents 3704d03 + a6dcaf5 commit 8d05ffc

File tree

1 file changed

+9
-0
lines changed
  • module/app/com/github/cleverage/elasticsearch

1 file changed

+9
-0
lines changed

module/app/com/github/cleverage/elasticsearch/Index.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@ public T byId(String id) {
191191
return IndexService.get(queryPath, type, id);
192192
}
193193

194+
/**
195+
* Asynchronously retrieves an entity by ID.
196+
* @param id
197+
* @return
198+
*/
199+
public F.Promise<T> byIdAsync(String id){
200+
return IndexService.getAsync(queryPath, type, id);
201+
};
202+
194203
/**
195204
* Retrieves all entities of the given type.
196205
*/

0 commit comments

Comments
 (0)