feliperazeek/playframework-elasticsearch

Can't use ES with non-JPA datasource

Opened this issue · 2 comments

I tried to use the elasticsearch module together with the morphia (mongodb) module but it did not work. Then while reading the docs I found out that it only works with JPA actually. It would be awesome if this module did work with non-JPA datasources as well since mongodb (and other NoSQL dbs) has been gaining some serious ground recently.

By the way, thanks for sharing this awesome module. Keep up the great work!

Seems like this issue was resolved at b7c7060 right?

A quick look at the sourcecode of the morphia module shows that it does not post events; Those are required for this module to know when to update the index.

While adding events for adding and updating objects is rather trivial, this is not the case for update- and delete-queries. The affected objects also need to be updated or removed from the elastic search index.