The code does not include necessary libraries, which include org.json, lucene-analyzers-common-8.0.0, lucene-core-8.0.0 and lucene-queryparser-8.0.0.
Comment the codes for different model in Indexer constructor under Indexer
Change to your file path and index path under LuceneConstants