Changeset 12653 for trunk/gsdl
- Timestamp:
- 2006-09-01T14:51:21+12:00 (18 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/java/org/nzdl/gsdl/LuceneWrap/GS2LuceneQuery.java
r12429 r12653 34 34 public class GS2LuceneQuery 35 35 { 36 public static void main (String args[]) 36 // Use the standard set of English stop words by default 37 static private String[] stop_words = StandardAnalyzer.STOP_WORDS; 38 39 40 static public void main (String args[]) 37 41 { 38 42 if (args.length == 0) { … … 45 49 IndexReader reader = ((IndexSearcher) searcher).getIndexReader(); 46 50 47 // Create one query parser with the standard set ofstop words, and one with none48 QueryParser query_parser = new QueryParser("TX", new StandardAnalyzer( ));51 // Create one query parser with stop words, and one with none 52 QueryParser query_parser = new QueryParser("TX", new StandardAnalyzer(stop_words)); 49 53 QueryParser query_parser_no_stop_words = new QueryParser("TX", new StandardAnalyzer(new String[] { })); 50 54
Note:
See TracChangeset
for help on using the changeset viewer.