Tutorial by Examples

Lucene is a Java library. If you don't have a Java development environment set up already, see the Java documentation. Download the latest version of Lucene from the Apache website, and unzip it. Add the required jars to your classpath. The following jars will be required by many projects, inclu...
This basic Lucene example creates a simple index, and searches on it. Note: RAMDirectory creates a memory-resident index, and is handy for experimenting and testing, but in practice most people will need to have an index stored in the file system (see FSDirectory.open). import java.io.IOException...

Page 1 of 1