Skip to content

MarekZhang/Lucene-Search-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucene-Search-App

A implementation of search Engine based on Apache Lucene

Running Environment

Linux 4.4.0
Maven 3.3.9
Java 1.8
gcc 5.4.0
Lucene 8.4.1

Running App

    1. Download this repo
    1. Build project
cd Lucen-Search-App/LuceneSearch
mvn clean
mvn package
    1. Run Index
java -cp target/LuceneSearch-1.0-SNAPSHOT.jar com.luceneSearch.mark.IndexFiles -file ../cran/cran.all.1400
    1. Run Search
java -cp target/LuceneSearch-1.0-SNAPSHOT.jar com.luceneSearch.mark.SearchIndex -query ../cran/cran.qry -model 2 -searchMode 2

(-model 1 represents VSM; -model 2 represents BM25 -searchMode 1 represents return the top 50 results; -searchMode 2 represents return all the mathced results)

    1. Evaluation
cd ..
cd trec_eval-9.0.7/
./trec_eval QRelsCorrectedforTRECeval query-result-boost.txt
    1. Connect to linux
ssh -i /path/my-key-pair.pem ubuntu@ec2-107-20-117-245.compute-1.amazonaws.com

About

A search Engine based on Apache Lucene

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published