On Github Xaerxess / lumesse-lucene-101
Apache Lucene is a free open source information retrieval software library, originally written in Java (...).
At the core of Lucene's logical architecture is the idea of a document containing fields of text. This flexibility allows Lucene's API to be independent of the file format.
Solr vs. Elasticsearch — How to Decide? by Otis Gospodnetić
No mention of Lucene in the article
When to use Lucene?
When to use Solr?
'book_title:Tadeusz^2 AND text:ojczyzna'
'+book_title:Tadeusz^2 +text:ojczyzna'
TermQuery titleQuery = new TermQuery(new Term("book_title", "Tadeusz")); titleQuery.setBoost(2); TermQuery textQuery = new TermQuery(new Term("text", "ojczyzna")); BooleanQuery booleanQuery = new BooleanQuery(); booleanQuery.add(titleQuery, BooleanClause.Occur.MUST); booleanQuery.add(textQuery, BooleanClause.Occur.MUST);Extras: IndexSearcher.search, collectors, Weight, QueryParser - QueryParser syntax: https://tipsthoughtsnotes.wordpress.com/2014/09/01/what-is-the-query-parser-syntax-in-apache-lucene/