|
Groovy example source code file (Searcher.groovy)
The Groovy Searcher.groovy source code
import org.apache.lucene.analysis.standard.StandardAnalyzer
import org.apache.lucene.queryParser.QueryParser
import org.apache.lucene.search.IndexSearcher
import org.apache.lucene.store.FSDirectory
/**
* Searcher: searches a Lucene index for a query passed as an argument
*
* @author Jeremy Rayner <groovy@ross-rayner.com>
* based on examples in the wonderful 'Lucene in Action' book
* by Erik Hatcher and Otis Gospodnetic ( http://www.lucenebook.com )
*
* requires a lucene-1.x.x.jar from http://lucene.apache.org
*/
if (args.size() != 2) {
throw new Exception("Usage: groovy -cp lucene-1.4.3.jar Searcher <index dir>
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Searcher.groovy source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.