org.tgels.search.examples
Class LuceneCollectorExample
java.lang.Object
org.tgels.search.examples.LuceneCollectorExample
public class LuceneCollectorExample
- extends java.lang.Object
LuceneCollectorExample code showing RankingAlgorithm usage. Very easy to uses, similar to
Lucene API. Needs access to a Lucene index to work.
args[0] is a lucene index path
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 LuceneCollectorExample "/lucene/index" contents "ranking algorithm" text
- Version:
- 1.0
- Author:
- Nagendra Nagarajayya
Date 2011/08/15
- See Also:
RankingQuery,
RankingHits,
RankingScore
|
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 |
LuceneCollectorExample
public LuceneCollectorExample()
main
public static void main(java.lang.String[] args)