Package org.sindice.siren.analysis.filter

Examples of org.sindice.siren.analysis.filter.ASCIIFoldingExpansionFilter

See: http://en.wikipedia.org/wiki/Latin_characters_in_Unicode

    final Analyzer analyser = new Analyzer() {
      @Override
      protected TokenStreamComponents createComponents(final String fieldName,
                                                       final Reader reader) {
        final WhitespaceTokenizer t = new WhitespaceTokenizer(LuceneTestCase.TEST_VERSION_CURRENT, reader);
        final TokenStream ts = new ASCIIFoldingExpansionFilter(t);
        return new TokenStreamComponents(t, ts);
      }
    };
    config.put(ConfigurationKeys.DEFAULT_OPERATOR, Operator.OR);
    final HashMap<String, Analyzer> dts = new HashMap<String, Analyzer>();
View Full Code Here


    final Analyzer analyser = new Analyzer() {
      @Override
      protected TokenStreamComponents createComponents(final String fieldName,
                                                       final Reader reader) {
        final WhitespaceTokenizer t = new WhitespaceTokenizer(LuceneTestCase.TEST_VERSION_CURRENT, reader);
        final TokenStream ts = new ASCIIFoldingExpansionFilter(t);
        return new TokenStreamComponents(t, ts);
      }
    };
    final HashMap<String, Analyzer> dts = new HashMap<String, Analyzer>();
    dts.put("exp", analyser);
View Full Code Here

*/
public class ASCIIFoldingExpansionFilterFactory extends TokenFilterFactory {

  @Override
  public ASCIIFoldingExpansionFilter create(final TokenStream input) {
    return new ASCIIFoldingExpansionFilter(input);
  }
View Full Code Here

TOP

Related Classes of org.sindice.siren.analysis.filter.ASCIIFoldingExpansionFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.