Question

I'm currently exploring Play framework 2 and I must say that I'm impressed! There is only one thing that I can't rap my head around(for the moment) and that is the search implementations.

Currently I have found: search module and elastic search but both are for Play 1

Do they work in Play 2?

I'm coming from Spring and Seam world where Hibernate Search is pretty common. Is there an implementation for that? How do you Play 2 guys implement your search functionality?

Was it helpful?

Solution

AFAIK, there is not any core module for full text search in Play 2.0

There is an project on GitHub which incorporates ElasticSearch to Play 1.x: https://github.com/cleverage/play2-elasticsearch.

There is also sample how to update ES after each Ebean operation on Play 2.0: https://groups.google.com/forum/#!topic/play-framework/cZqt6U-2LHg%5B1-25%5D

OTHER TIPS

Start with Postgres full text indexes if you are already using a relational database (mysql 5.6 full text doesn't handle stemming but it might work for your needs too). If the database you are already using anyway does what you need, it is very convenient to not have to sync/manage more stack complexity.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top