Class BoostScoreExample

java.lang.Object
  extended by BoostScoreExample

public class BoostScoreExample
extends java.lang.Object

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" 
         
 

Author:
Nagendra Nagarajayya
See Also:
RankingQuery, RankingHits, RankingScore

Constructor Summary
BoostScoreExample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoostScoreExample

public BoostScoreExample()
Method Detail

main

public static void main(java.lang.String[] args)