ustramooner / LucenePlusPlus

Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
luceneplusplus@googlegroups.com
Apache License 2.0
9 stars 1 forks source link

Lucene++

Welcome to lucene++ version 3.0.3.4.

Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.

Components

Useful Resources

Official Java Lucene <http://lucene.apache.org/java/docs/index.html>_ - useful links and documentation relevant to Lucene and lucene++. Lucene in Action <http://www.amazon.com/Lucene-Action-Otis-Gospodnetic/dp/1932394281/ref=sr_1_1?ie=UTF8&s=books&qid=1261343174&sr=8-1>_ by Otis Gospodnetic and Erik Hatcher.

Boost unit testing runtime parameters reference http://www.boost.org/doc/libs/1_44_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html

Build Instructions using CMake

You'll need boost installed somewhere.

On Debian systems, the following packages are required:

Build Instructions using Waf

Alternatively you can use Waf <http://code.google.com/p/waf/> to drive the build. Waf requires that you have a recent version of Python <http://python.org> installed on your system.

To build the library the following commands should be issued::

$ ./waf configure
$ ./waf --static build

Additionally static builds of the following libraries are required for a successful build:

The libraries and headers should be made available at a standard prefix (/usr/local for example).

Build Instructions for Windows systems

Open solution lucene++.sln located in the msvc folder into Visual Studio 2008 and build.

Note: "BOOST_ROOT" environment variable must be defined to point to the boost library directory (eg. c:\boost_1_44_0)

You'll need boost installed.

BoostPro <http://www.boostpro.com>_ has some precompiled windows packages. You'll need the following extras installed::

Building Performance

Use of ccache will speed up build times a lot. I found it easiest to add the /usr/lib/ccache directory to the beginning of your paths. This works for most common compilers.

PATH=/usr/lib/ccache:$PATH

To run unit test suite

lucene_tester is built using the Boost Unit Test Framework <http://www.boost.org/doc/libs/1_44_0/libs/test/doc/html/index.html>_ and is launched by the following command::

$ bin/lucene_tester --test_dir=./test/testfiles --show_progress=yes

Other command options <http://www.boost.org/doc/libs/1_44_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html>_ can be supplied.

Acknowledgements