tags:

views:

725

answers:

3
+3  Q: 

Lucene with PHP

Can I use Lucene with PHP ? I don't want to use Zend. Can I use in native PHP (not framework) ?

+2  A: 

Also worth noting, SOLR (http://lucene.apache.org/solr/) has a simple HTTP API, and is built on top of Lucene, so if it provides what you need, then that's an easy answer!

I don't have direct experience with Lucene with PHP, so I'll defer to the experts on that.

gahooa
+3  A: 

I would recommend using Apache SOLR as your Lucene backend and connecting via web service calls from your PHP code.

I'd also note that it's easy to pick and choose components of Zend Framework for use in your application without loading the entire framework. You could use Zend_Search_Lucene in your site and forego Zend's MVC, database, and related components.

pix0r
Thank. I will try with Apache SOLR
saturngod
I'd like to tag on to that a recommendation (personal preference) that you use JSON rather than XML for retrieving your results.
Brian Mansell
A: 

When you say you don't want to use Zend, I'm assuming you mean you don't want to use the whole Zend Framework. Well you don't have to - the individual Zend components can be used on their own without needing to be part of a Zend framework project.

Gnuffo1