O'Reilly logo

Play Framework Cookbook by Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Solr for indexing

As already mentioned several times in this book, there already exists a very nice plugin for searching, which is based on Apache Lucene. The primary drawback of this plugin is that it does not scale due to the fact that it searches on indexes stored on the local file system. If you had a multi-node setup, you would have to make sure that changes of objects are propagated to all nodes and all indexes are updated. This would be very cumbersome and there is already a solution for this problem. Its name is Apache Solr and basically it is a HTTP interface around Lucene. In fact, it has more functionality than that, but for this example, this fact is sufficient. This means using Apache Solr basically moves the index from one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required