Question

I'm using Zend_Search_Lucene for my search engine. Sadly it is missing an implementation of the MorelikeThis methods which can find similar documents in the index.

Has anybody come across a decent Zend port of this function?

I found a drupal module but have no idea if this can be used with Zend without some serious hacking.

Was it helpful?

Solution

The ZF guys did a great job with Zend_Search_Lucene, but it just isn't as robust as Sphinx or Solr. I would highly recommend using either one of those, as they would give you the MoreLikeThis functionality that you are looking for, in addition to so many more features.

If you Google 'solr vs sphinx' you'll find several articles comparing the two.

Both search engines have PHP interfaces, so that makes integration easy. http://us2.php.net/manual/en/refs.search.php

OTHER TIPS

Solr is accesible from a rest API which allows you to use it with any language. It's also owned by the people who own Lucene, so you are more likely to get updates and/or patches such as this in a timely manner. For example we have a patch for field collapsing that works in 1.4, that functionality is not slated until version 4.0, 3.0 was just released in March if that gives you any idea about how easy it is to get access to new features in Lucene.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top