Ignore:
Timestamp:
2008-11-10T20:46:44+13:00 (15 years ago)
Author:
davidb
Message:

Introduction of GS2Analyzer, which overrides default behaviour of StandardAnalyzer to make accent folding of Latin-1 *on*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indexers/trunk/lucene-gs/src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java

    r16947 r17804  
    5959
    6060    // 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;
    6262
    6363    private String full_indexdir="";
     
    9494    // Create one query parser with the standard set of stop words, and one with none
    9595
    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[] { }));
    9898    }
    9999   
     
    134134        query_including_stop_words = query_including_stop_words.rewrite(reader);
    135135       
     136        // System.err.println("********* query_string " + query_string + "****");
     137
    136138        Query query = parseQuery(reader, query_parser, query_string, fuzziness);
    137139        query = query.rewrite(reader);
Note: See TracChangeset for help on using the changeset viewer.