BoostScoreExample code showing RankingAlgorithm usage. Very easy to uses, similar to
Lucene API. Creates a new Lucene index in the index path to work.
args[0] path to create a new lucene
args[1] is the field to search on
args[2] are the search terms
args[3] is the field to show in the results
Example:
java BoostScoreExample "/tmp/index" contents "ranking algorithm"
java BoostScoreExample "/tmp/index" contents "ranking hits"
java BoostScoreExample "/tmp/index" contents "ranking hits^1.25"
java BoostScoreExample "/tmp/index" contents "ranking title:hits^1.25"