|
| 1 | +Lucene++ |
| 2 | +========== |
| 3 | + |
| 4 | +Welcome to lucene++ version **3.0.7**. |
| 5 | + |
| 6 | +Lucene++ is an up to date C++ port of the popular Java [Lucene](http://lucene.apache.org/) |
| 7 | +library, a high-performance, full-featured text search engine. |
| 8 | + |
| 9 | + |
| 10 | +Components |
| 11 | +---------------- |
| 12 | + |
| 13 | +- liblucene++ library |
| 14 | +- liblucene++-contrib library |
| 15 | +- lucene++-tester (unit tester) |
| 16 | +- deletefiles (demo) |
| 17 | +- indexfiles (demo) |
| 18 | +- searchfiles (demo) |
| 19 | + |
| 20 | + |
| 21 | +Useful Resources |
| 22 | +---------------- |
| 23 | + |
| 24 | +Official [Java Lucene](http://lucene.apache.org/java/docs/index.html) - useful links and |
| 25 | +documentation relevant to Lucene and lucene++. [Lucene in Action](https://www.amazon.com/dp/1932394281/) |
| 26 | +by Otis Gospodnetic and Erik Hatcher. |
| 27 | + |
| 28 | + |
| 29 | +Build Instructions |
| 30 | +------------------ |
| 31 | + |
| 32 | +You'll need the [Boost](http://www.boost.org) libraries installed somewhere. |
| 33 | + |
| 34 | +On Debian systems, the following packages are required: |
| 35 | +- zlib1g-dev |
| 36 | +- libboost-date-time-dev |
| 37 | +- libboost-filesystem-dev |
| 38 | +- libboost-regex-dev |
| 39 | +- libboost-thread-dev |
| 40 | +- libboost-iostreams-dev |
| 41 | + |
| 42 | +To build the library the following commands should be issued:: |
| 43 | + |
| 44 | + $ mkdir build; cd build |
| 45 | + $ cmake .. |
| 46 | + $ make |
| 47 | + $ make install |
| 48 | + |
| 49 | + |
| 50 | +Build Instructions for Windows systems |
| 51 | +-------------------------------------- |
| 52 | + |
| 53 | +Once installing the dependencies, open cmake-gui and configure the build. |
| 54 | +When building on windows, ensure that the `ENABLE_CYCLIC_CHECK` option |
| 55 | +is set to `true`. |
| 56 | + |
| 57 | +Next, open the visual studio project with the 'open project' button. the |
| 58 | +project is built using the `ALL_BUILD` solution in the projects column. |
| 59 | +If you would like to install the project, build the `INSTALL` solution |
| 60 | +after the fact. |
| 61 | + |
| 62 | +** |
| 63 | +Note: if you wish to install the Lucene++ library to a protected area, you |
| 64 | +must re-open the visual studio project as an administrator |
| 65 | +** |
| 66 | + |
| 67 | +** |
| 68 | +Note: "BOOST_ROOT" environment variable must be defined to point to the |
| 69 | +Boost library directory (eg. c:\\local\\Boost). cmake should automatically |
| 70 | +find the installed libraries if they are installed within that path; |
| 71 | +e.g. C:\\local\\Boost\\lib64-msvc-14.2 |
| 72 | +** |
| 73 | + |
| 74 | + |
| 75 | +To run unit test suite |
| 76 | +---------------------- |
| 77 | + |
| 78 | +lucene_tester is built using the [Google Testing Framework](https://code.google.com/p/googletest/). |
| 79 | +you can run the test suite on unix with the following command run from the |
| 80 | +repository root:: |
| 81 | +``` |
| 82 | + $ build/src/test/lucene++-tester |
| 83 | +``` |
| 84 | + |
| 85 | +the test suite can also be run from the repository root on NT systems, but the required DLL |
| 86 | +files must manually be copied into the test binary path before executing, otherwise you will |
| 87 | +recieve errors telling you that required libraries cannot be found. |
| 88 | +``` |
| 89 | + $ build/src/test/lucene++-tester |
| 90 | +``` |
| 91 | + |
| 92 | +Command options can be discovered by supplying `--help`. |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +To run the demos |
| 98 | +---------------- |
| 99 | + |
| 100 | +Start by indexing a directory of files - open a command prompt and run |
| 101 | +``` |
| 102 | + ./indexfiles <directory to index> <directory to store index> |
| 103 | +``` |
| 104 | +Once the indexer has finished, you can query the index using searchfiles |
| 105 | +``` |
| 106 | + ./searchfiles -index <directory you stored the index in> |
| 107 | +``` |
| 108 | +This uses an interactive command for you to enter queries, type a query to search the index press enter and you'll see the results. |
| 109 | + |
| 110 | + |
| 111 | +Acknowledgements |
| 112 | +---------------- |
| 113 | + |
| 114 | +- Ben van Klinken and contributors to the CLucene project for inspiring this project. |
| 115 | +- md5 Copyright (C) 1999, 2000, 2002 Aladdin Enterprises |
| 116 | +- `Unicode character properties (guniprop)[http://library.gnome.org/devel/glib/] Copyright (C) 1999 Tom Tromey, Copyright (C) 2000 Red Hat, Inc. |
| 117 | +- `Cotire (compile time reducer)[https://github.com/sakra/cotire] by Sascha Kratky. |
0 commit comments