Shay Banon home

 

Searchable Google AppEngine with Compass

Google App Engine was released yesterday for Java. It provides the ability to deploy Java based web applications onto the App Engine, and provides a data store service (with JPA and JDO on top of it), memcached, and others.

So, what I decided to do is try and get Compass integrated with Google App Engine to allow for easy full text search of Google App Engine apps (yea, the irony). Basically, it took me a couple of hours (most of them spent on this bug in gae), and we have something ready to use. Here is a screencast showing how the Guestbook app can be made searchable easily (use full screen mode when code is shown):

What are the steps needed?

Thats it. Pretty simple no? Especially since these are the steps you use to enable any Java application with full text search using Compass :).

Of course, there are some leftovers. The first is better support for JPA (built on top of Compass generic support for JPA). Another enhancement is to use memcache service to cache heavily used index portions.

Update: Questions regarding the integration are best asked on the Compass forums. Its hard to have a conversation using the blog comments.

Enjoy!

© 2003-2010 Shay Banon
Fork me on GitHub