- Timestamp:
- 2008-11-10T20:46:44+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
indexers/trunk/lucene-gs/src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java
r16947 r17804 59 59 60 60 // Use the standard set of English stop words by default 61 static private String[] stop_words = StandardAnalyzer.STOP_WORDS;61 static private String[] stop_words = GS2Analyzer.STOP_WORDS; 62 62 63 63 private String full_indexdir=""; … … 94 94 // Create one query parser with the standard set of stop words, and one with none 95 95 96 query_parser = new QueryParser(TEXTFIELD, new StandardAnalyzer(stop_words));97 query_parser_no_stop_words = new QueryParser(TEXTFIELD, new StandardAnalyzer(new String[] { }));96 query_parser = new QueryParser(TEXTFIELD, new GS2Analyzer(stop_words)); 97 query_parser_no_stop_words = new QueryParser(TEXTFIELD, new GS2Analyzer(new String[] { })); 98 98 } 99 99 … … 134 134 query_including_stop_words = query_including_stop_words.rewrite(reader); 135 135 136 // System.err.println("********* query_string " + query_string + "****"); 137 136 138 Query query = parseQuery(reader, query_parser, query_string, fuzziness); 137 139 query = query.rewrite(reader);
Note:
See TracChangeset
for help on using the changeset viewer.