Practical programming for Information Retrieval course in Computer Science Center, Autumn 2014.
For generating executable JARs, run mvn package -DskipTests.
Two JARs, indexer.jar and searcher.jar will be created.
Usage: java -jar indexer.jar directory_to_index output_index_file_path
As soon as index will be generated and saved into file, process will stop.
Usage: java -jar searcher.jar inverted_index_file_path
Searcher will ask for new queries eternally, until you pass an empty line or kill the process.
Searcher handles queries like
term1 /N term2 /+M term3 /-K term4
and don't handles queries like
term1 AND term2 or term1 OR term2