Lucene entry-install and run the Demo program and lucene entry demo program
What is Lucene?
Lucene is a high-performance and scalable library of information retrieval tools. -Lucene In Action
Lucene version: 7.1
1. Download the installation package
Https://lucene.apache.org/core/downloads.html
Ii. Installation
Add four necessary jar packages and paths to CLASSPATH
Lucene-7.1.0 \ core \ lucene-core-7.1.0.jar
\ Lucene-7.1.0 \ queryparser \ lucene-queryparser-7.1.0.jar
\ Lucene-7.1.0 \ analysis \ common \ lucene-analyzers-common-7.1.0.jar
\ Lucene-7.1.0 \ demo \ lucene-demo-7.1.0.jar
Iii. Test
1. Create an index
Java org. apache. lucene. demo. IndexFiles-docs {path-to-lucene}
Path-to-lucene: directory for which the index is to be created
2. Search for Indexes
Java org. apache. lucene. demo. SearchFiles
Enter the content you want to search.
3. Demo source code
IndexFiles. java: Create an index
SearchFiles. java: Search