feliperazeek / playframework-elasticsearch

Integrate Elastic Search in a Play! Framework Application. This module uses JPA events to notify Elastic Search of events of their own. It embeds a running Elastic Search instance for Rapid Development.
http://geeks.aretotally.in/play-framework-module-elastic-search-distributed-searching-with-json-http-rest-or-java
84 stars 43 forks source link

Added support for entity hydration #18

Closed bgooren closed 13 years ago

bgooren commented 13 years ago

Hi,

I've added basic support for hydrating JPA entities. To prevent n+1 the code performs a batch-load for all search results at once; Next, if sorts the hydrated entities to match the search result order.

This new functionality is available through ElasticSearch.searchAndHydrate() so it doesn't break existing code.

Bas

bgooren commented 13 years ago

I've updated the route to es-admin, since it's no longer working in 0.0.7

bgooren commented 13 years ago

I've added a Query object to support paging and other useful constructs without adding extra parameters to the methods in ElasticSearch.