Archive for February, 2008

Compass and Lucene 2.3

Monday, February 11th, 2008

Latest nightly builds of Compass (2.0 M2) now supports the latest Lucene 2.3 version. 2.0 M2 will be release soon, but it would be great if people can start playing with it for early feedback. Here is an explanation on how to get them.

As a side note, there have been many enhancements built into this Compass version, revolving around Lucene 2.3. I will blog about each of them later.

Nightly Builds for Compass

Wednesday, February 6th, 2008

After the move to a new site, and thanks to Atlassian Bamboo, Compass now has a much enhanced CI builds as well as nightly builds.

So, if you are looking for the latest and greatest of Compass, head over to Compass Build Server. For example for the trunk version (which is currently the 2.0 M2 upcoming version), head over here, pick one of the builds, for example, this latest one. Then, head over to the Artifacts tab, and you will see the artifacts of the nightly builds including releases, reference documentation, and javadoc.

Embedded Hibernate with Compass

Wednesday, February 6th, 2008

Up until now, the integration of Compass with Hibernate was nice, but not as nice as it should be. With the latest 2.0 M1 release, Compass now supports embedded mode with Hibernate, similar to the integration it has with OpenJPA.

So, how does it work? Very simply. Within the hibernate configuration, simply add a single property pointing to where Compass will store the index:

1
2
3
4
5
6
7
<hibernate-configuration>
    <session-factory>
        <!-- Other hibernate mappings and proeprties -->      
 
        <property name="compass.engine.connection">target/test-index</property>
    </session-factory>
</hibernate-configuration>

This will cause Compass to start within Hibernate, automatically add all the searchable Hibernate mapped classes, and start mirroring Hibernate changes to the search engine.

Now, in order to a Compass instance in order to perform searches, you can simply get it from the Hibernate session factory:

1
Compass compass = HibernateHelper.getCompass(sessionFactory);

That simplifies things, no? :). For full reference documentation, read here.

Mac Rant

Monday, February 4th, 2008

For the past few days, my mac has started to acting up. Kernel panics are happening all the time and I can’t narrow down the cause for it. I have not installed any new software, did not do any hardware changes, and I am not using any external devices. Argghhhhh!.

I followed everything that I can do. Reinstalled OS X, preset PRAM, Zero out format, and nothing helps. The most annoying part is the fact that it even fails during the configuration part that comes after the installation!.

Must be a hardware issue that suddenly decided to creep its ugly head, for reasons waaaay beyond me. Though of course, hardware tests all seem to pass.

So much time wasted on this….

New Compass Site

Sunday, February 3rd, 2008

I am happy to announce that Compass now has its own site and services. Check it out at: compass-project.org. Some bits and pieces are still missing such as the very important overview section, and proper wiki structure, but I hope that all in all Compass users will find it useful.

This has required some hard work, but I hope it will pay off. Special thanks go to the amazing Contegix people for donating a server, setting everything up, and managing it. Also, the usual suspects/sponsors such as Atlassian and Jetbrains, require special thanks as well.

Well, back to watching the Super Bowl and hacking Compass :)