Package org.apache.lucene.analysis.phonetic

Examples of org.apache.lucene.analysis.phonetic.DoubleMetaphoneFilter


    }
  }

  @Override
  public DoubleMetaphoneFilter create(TokenStream input) {
    return new DoubleMetaphoneFilter(input, maxCodeLength, inject);
  }
View Full Code Here


    }
  }

  @Override
  public DoubleMetaphoneFilter create(TokenStream input) {
    return new DoubleMetaphoneFilter(input, maxCodeLength, inject);
  }
View Full Code Here

    public TokenStream tokenStream(String fieldName, Reader reader) {
        TokenStream result = new StandardTokenizer(mMatchVersion, reader);
        result = new StandardFilter(mMatchVersion, result);
        result = new LowerCaseFilter(mMatchVersion, result);            // lowercased only
        result = new StopFilter(mMatchVersion, result, mStopWordSet);   // remove stopwords
        result = new DoubleMetaphoneFilter(result,mMaxCodeLength,true); // store phonetic code
        result = new ShingleFilter(result, 2, 3);                       // create token n-grams
        return result;
    }
View Full Code Here

                    return new BeiderMorseFilter(tokenStream, new PhoneticEngine(nametype, ruletype, true), languages);
                }
                return new BeiderMorseFilter(tokenStream, new PhoneticEngine(nametype, ruletype, true));
            }
            if (maxcodelength > 0) {
                return new DoubleMetaphoneFilter(tokenStream, maxcodelength, !replace);
            }
        } else {
            return new PhoneticFilter(tokenStream, encoder, !replace);
        }
        throw new ElasticsearchIllegalArgumentException("encoder error");
View Full Code Here

TOP

Related Classes of org.apache.lucene.analysis.phonetic.DoubleMetaphoneFilter

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.