I just caught an announcement that Compass 0.9 was released. Not knowing what Compass actually was, I ventured over to the OpenSympony site.
Compass is a first class open source Java Search Engine Framework, enabling the power of Search Engine semantics to your application stack decoratively. Built on top of the amazing Lucene Search Engine, Compass integrates seamlessly to popular development frameworks like Hibernate and Spring. It provides search capability to your application data model and synchronizes changes with the datasource. With Compass: write less code, find data quicker.
Sounds pretty cool, basically an integration point between Lucene and Hibernate/Spring. It’s been an area of interest for some time, I’ve wanted to build a more googlish/search engine-ey interface to one of our applications at work. We’ve got rudementary searching in place, but it’s more pre-defined than ad-hoc. We provide the entities that you can search on and the relationships are mapped behind the scenes.
It works and it might even be more usable than something relatively open-ended like a traditional engine, but hey, we’ve utilizing hibernate on the persistence tier, I might at least try and incorporate something.
So I set out tonight to see how far I could get in a couple hours. Compass’ integration with Hibernate & Spring is fairly straight-forward, basically point it at an initialized SessionFactory and you’re set. Note: If you’re using Spring you must use the SpringHibernate3GpsDevice instead of the Hibernate3GpsDevice (it’s pretty funny what compass is doing behind the scenes to ensure that its event listeners get registered on the session factory, re: FieldInvoker’s on private collections, etc.).
The sticking point that prevented me from actually getting something real going was the compass equivalent of a mapping file. Currently there’s no easy way to convert an existing hbm hierarchy to compass. A tad unfortunate and there’s been some rumblings on the user forums but it’s not there yet. I’ve got an idea to whip a little templating solution together that’ll parse a simple text file and generate the approprate compass files. It shouldn’t be that difficult to hack together (easier than parsing the hbm.xml files) and it should give me an idea of whether or not there’s value in continuing down this path.
Needless to say it looks pretty interesting and the community seems active. I’ll post again a bit later in the week as I have time to work on this.
-
Pet Peeve: Don’t email my password to me in plain text You know the drill.
Signup for some random service on the internet
Receive a confirmation email with your account information
or
Forget a password for some random service ...
-
Eclipise Memory Analyzer (MAT) I must say the Eclipse Memory Analyzer looks pretty slick. There is some pretty good material over on the developers blog. Lastly, there was a talk on it ...
-
Open-source Web-based Code Review Tool: Rietveld Guido van Rossum, of Python fame, has recently released a Django-based application that enables web-based code reviews... Rietveld.
It supports any language and currently can hook into Subversion repositories. You ...
-
An implementation of the JVM in Javascript? Caught this over on JavaPosse Google Groups.
Essentially, some bright fellows over in Japan have developed a bytecode->javascript compiler. There's a demo floating around that took a Tetris ...
-
Facebook Chat? So it looks like the Facebook Chat service has finally started rolling out to my network (Facebook Chat has been mentioned previously).
Not quite sure how ...
Latest Entries
- Lessons Learned as a Project Lead
- Good ANTLR Resource
- Testing with Unitils
- Headed to Kelowna for a short vacation (and the laptop stays behind)
- Seam + Groovy + Maven : Nice Simple Hibernate POJOs
- Pet Peeve: Don’t email my password to me in plain text
- Eclipise Memory Analyzer (MAT)
- caBIG Annual Meeting - A developers perspective
- OS X + Java6: java.lang.UnsatisfiedLinkError: /usr/lib/java/libObjCJava.A.dylib
- Getting started with JBoss Seam and Maven
Blogroll
No Comments
Leave a Comment
trackback address