Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lucene with PHP

Tags:

php

lucene

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

like image 516
saturngod Avatar asked Jan 06 '10 02:01

saturngod


People also ask

Why is Lucene so fast?

Why is Lucene faster? Lucene is very fast at searching for data because of its inverted index technique. Normally, datasources structure the data as an object or record, which in turn have fields and values.

Is Lucene still used?

From my experience, yes. Lucene is a "production" state of art library and Solr/Elasticsearch is very used in many scenarios. This expertise is very on demand.

Does Lucene use a database?

Lucene is not a database — as I mentioned earlier, it's just a Java library.

Is elastic built on Lucene?

Lucene or Apache Lucene is an open-source Java library used as a search engine. Elasticsearch is built on top of Lucene. Elasticsearch converts Lucene into a distributed system/search engine for scaling horizontally.


1 Answers

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.

like image 55
pix0r Avatar answered Oct 03 '22 23:10

pix0r