Lucene Library

Component ID

2094485

Component name

Lucene Library

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

873

Component created

Component changed

Component body

Lucene library is a general purpose text search engine written entirely in PHP 5 by Zend. Since it stores its index on the file system and does not require a database server, it can add search capabilities to almost any PHP driven website. Lucene supports the following features:

  • Ranked searching - best results returned first
  • Many powerful query types: phrase queries, boolean queries, wildcard queries, proximity queries, range queries and many others.
  • Search by specific field (e.g., title, author, contents)

This module provides zend lucene library for the module developers to use.

Dependency

The module is dependent on Composer manager module

Installation Instructions

Installation using drush is highly recommended for this module.

drush dl composer_manager
drush dl lucene_library
drush en lucene_library -y

It is better to have updated drush, like version 5.9

Please have some patience this might take couple of minutes to download the libraries and dependencies.


Usage

composer_manager_register_autoloader();
$index = ZendSearchLuceneLucene::create(DRUPAL_ROOT . '/sites/all/lucene_index');