- Download Apache Lucene compressed files (v9.9.1)
- Setting CLASSPATH
export CLASSPATH=$(pwd)/modules/lucene-core-9.9.1.jar:$(pwd)/modules/lucene-queryparser-9.9.1.jar:$(pwd)/modules/lucene-analysis-common-9.9.1.jar:$(pwd)/modules/lucene-demo-9.9.1.jar
Go to
lucene-9.9.1
directory
- Build index
java org.apache.lucene.demo.IndexFiles -docs .
- Search index
java org.apache.lucene.demo.SearchFiles
On VSCode, add lucene-core-9.9.1.jar
, lucene-queryparser-9.9.1.jar
, lucene-analysis-common-9.9.1.jar
, lucene-demo-9.9.1.jar
to Reference Libraries