feliperazeek/playframework-elasticsearch — pull request #71 by isamaru (2012-09-04 16:59:16+00:00)
Title: Lookup models without indexing them first

JPATransformer had an issue: when using generalized hydrated search over multiple indices, class resolution would fail if the class was not cached by the plugin. This happens when you start Play with an index that is already filled and tried to search on it without indexing (Indexing populates the cache).

The fix: when the cache does not contain class for the given index name, we iterate over all searchable models and determine the one which resolves to the same name.