01 June 2007
Combining Cocoon and Solr
It's been quiet here this month. I've been extremely busy (what else is new) with finishing up old and starting up new projects. One of the exciting new things is that I've been asked to help out with a new project that embraces the power of Cocoon (hurrah!).
It's a very nice project with a lot of interesting features. The team is very skilled and they are very enthusiastic about the project. My job for now is to support them in their daily Cocoon development and help them out with solutions for parts of their system.
I'm currently looking at how we can implement faceted navigation and fast searching. The first thing that came to mind was Lucene and Solr. I've heard Bertrand talking about Solr so many time that I had to take a look at it. Solr seems to be very powerful,flexible and easy to use. Even for people new to Solr it's easy to setup and play with.
So yesterday I gave Solr a try, to see what we could use it for and it seems to be almost exactly what we need. Cocoon and Solr are in my opinion made for each other since you can do all sorts of XML operations with Cocoon and send and receive these to/from Solr.
While playing around with Solr, I wanted to give it a try from a Cocoon application to see how they would interact. Since you can get results back from Solr by doing an http request it's very easy to integrate this in your Cocoon sitemap. Digging a bit deeper, I stumbled upon a Solr SearchGenerator for Cocoon. Of course that sounded very interesting and I tried it at once. The SearchGenerator is actually very simple and is just a wrapper around an http PostMethod that sends a query to Solr and generates the XML response into the pipeline. Now I had all I needed.
I've even written a small faceted webapp based on the sample content provided in the default Solr checkout. It was fun to write and did not even take me that long. I'll write some more documentation about this and put it online, so other people could also try this out.
So far I really like Solr. Can't wait to spend more time on using it!
Some good links on Solr:
- Search smarter with Apache Solr, Part 1: Essential features and the Solr schema
- Search smarter with Apache Solr, Part 2: Solr for the enterprise
14 May 2007
Waiting at the airport
So here I am at Schiphol airport waiting for my flight to London. This afternoon I had a feeling, that it was going to be a long day. And it seems I was right. Entering the big hall it was the first thing I noticed: the big red letters around my departure time. It seems I have a 40 minutes delay, but as you know it's just an indication. It's only 40 minutes you might say, but waiting for 40 minutes can be quite a long time.
I can still remember the day (about 2 years) ago that Arje and I went to London and they started out with an hour delay and it ended in not going at all, because of the weather. Let's hope that the delay today is not because of the weather, otherwise it can become an ever longer night then expected.
I always read other peoples weblog, where they complain about flying specific airlines. Untill now I did not really understand what all the fuzz was about. I guess the amount of frustration can be measured by how many flights you have a year and the reason why you're at the airport. I can't remember being frustrated about a delay while going on vacation, but today it seems to bother me a lot more.
Well I'm off for a nice cold heineken. Maybe that will bring me in a better mood ;-)
07 May 2007
Updating Ubuntu to 7.04, Feisty Fawn
Looking back at the ApacheCon EU 2007
Last week I had to finish up some work just before being able to leave for the ApacheCon EU 2007. I wanted to go there on Wednesday, to see Stefano's No-Nonsense Introduction to "semantic web" Technologies and some Lucene talks, but I got held up until late in the afternoon.
After my arrival at the Moevenpick Hotel I teamed up with Jasha to do some preparations for our presentation on Friday. We moved some slides and made some additions to the demo. I was pleased with the ApacheCon being held at the Moevenpick. The hotel was nice and food was good and plenty of drinks during the day time!
On Thursday there were a couple of interesting session which I wanted to attend. I started out with Apache Performance Tuning Part 1, which seemed interesting in the beginning, but in the end I noticed that my knowledge of Apache isn't as outdated as expected. Later that afternoon I visited "Up to Speed with Java Content Repository API and Jackrabbit" by Alexandru Popescu. I found it to be very interesting, since we're looking into Jackrabbit at the moment at Hippo.
At the end of Thursday the lightning lottery talks took place and as usual this was a big laugh! I always find them very amusing and the speakers have a good sense of humor. Of course the Google sponsored beers helped a lot.
There were two more serious though of which one of them came by Stefano Mazzocchi. It was something he had to tell the 'Cocoon community' as a whole. Stefano invented Butterfly after leaving the message that Cocoon had become too bloated. I agree that Cocoon 2.1 is bloated, but there is a very simple explanation for that: it's lack of dependency management. That's where Cocoon 2.2 does a much better job in combination with Maven 2. I guess I will have to take an even deeper look at Stefano's latest invention, to see what he actually came up with, but it sounds interesting.
Friday was the big day where Jasha and I had to do our presentation. After some more preparations in the morning and afternoon, we went outside to get some rest and enjoy the lovely weather. I have to say that the weather during the ApacheCon was great. We talked the entire presentation through and were ready to go! First we headed for Bertrand who did an excellent talk on XSLT and XPath.
After a short break and some some delicious ice-cream it was up to us. People started coming into the room one by one and I think we had around 35 people attending our talk. For a Friday afternoon at 16.30 pm I think we did pretty well. I noticed a lot of people left early on Friday to catch their early flight or train back home. After the talk Jasha and I both had the same feeling: It went pretty well for a first time presentation together! We both found some places in the presentation where we could improve our next talk, so we'll take that along for the next one.
After attending Andrews talk on Cocoon 2.2 and Web 2.0 we went out to enjoy the weather and some nice cold, well earned beers! I think this year was another successful ApacheCon EU. Next to all the presentations the social happening is one of the great aspects of the ApacheCon. You get to meet all the people you actually only know by name. Make sure you'll be there next year. I heard it's going to be in Amsterdam again in 2008!
For all the people that attended our talk: Thank you and I hope to see you next year!
Some extras:
- An impression of the ApacheCon by all attendees at Flickr
- A short impression by me at Flickr
- Several presentations (Including ours)