Searched defs:matcher (Results 1 - 4 of 4) sorted by relevance
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | PatternTokenizer.java | 67 private final Matcher matcher; field in class:PatternTokenizer 75 matcher = pattern.matcher(str); 86 while (matcher.find()) { 87 final String match = matcher.group(group); 90 index = matcher.start(group); 91 offsetAtt.setOffset(correctOffset(index), correctOffset(matcher.end(group))); 101 while (matcher.find()) { 102 if (matcher.start() - index > 0) { 104 termAtt.setEmpty().append(str, index, matcher [all...] |
H A D | PatternTokenizerFactory.java | 122 public static List<Token> split( Matcher matcher, String input ) argument 129 while(matcher.find()) { 130 String match = input.subSequence(index, matcher.start()).toString(); 131 matchList.add( new Token( match, index, matcher.start()) ); 132 index = matcher.end(); 158 * Create tokens from the matches in a matcher 163 public static List<Token> group( Matcher matcher, String input, int group ) argument 166 while(matcher.find()) { 168 matcher.group(group), 169 matcher [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/phonetic/src/java/org/apache/lucene/analysis/phonetic/ |
H A D | BeiderMorseFilter.java | 53 // matcher over any buffered output 54 private final Matcher matcher = pattern.matcher(""); field in class:BeiderMorseFilter 87 if (matcher.find()) { 89 termAtt.setEmpty().append(encoded, matcher.start(1), matcher.end(1)); 101 matcher.reset(encoded); 102 if (matcher.find()) { 103 termAtt.setEmpty().append(encoded, matcher.start(1), matcher [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PatternAnalyzer.java | 329 private Matcher matcher; field in class:PatternAnalyzer.PatternTokenizer 339 this.matcher = pattern.matcher(str); 345 if (matcher == null) return false; 350 boolean isMatch = matcher.find(); 352 end = matcher.start(); 353 pos = matcher.end(); 356 matcher = null; // we're finished 381 this.matcher = pattern.matcher(thi [all...] |
Completed in 5971 milliseconds