Wednesday, September 17, 2008

Lucene doesn't provide details as to which field the match was on?

I've now spent around 4 hours trying to figure out if there is a way for Lucene to give me information as to on which fields was the match exactly found.

The IndexReader.explain() method gives this information, however the documentation specifically mentions that this method should not be used in production level code as its gonna be slow.

At the moment as a workaround I am going to explicitly extract the value of the field from the Document and string compare it with the given search string to check whether there is a match.

Let me know if anyone has any other findings.

Dropped the idea for OTA synching with SymcML

Past few days I have been mulling with the idea of a start-up geared towards syncing the contacts from mobile phones to the web.

Surprisingly, there are more than 6-7 services which provide these facilities. The most recent of them, Syncy has got a good funding from VC's. The idea struck me because I recently bought an iphone and had to type in all the contacts I had on my earlier phone. It was such a pain that I thought I could solve this for other people by developing a good product.

However, there are already a lot of people on this one and they are doing a pretty good job. There is no point pursuing this further.