/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/ |
H A D | StemmerUtil.java | 23 * Returns true if the character array starts with the suffix. 41 * Returns true if the character array ends with the suffix. 45 * @param suffix Suffix string to test 46 * @return true if <code>s</code> ends with <code>suffix</code> 48 public static boolean endsWith(char s[], int len, String suffix) { argument 49 final int suffixLen = suffix.length(); 53 if (s[len -(suffixLen - i)] != suffix.charAt(i)) 60 * Returns true if the character array ends with the suffix. 64 * @param suffix Suffix string to test 65 * @return true if <code>s</code> ends with <code>suffix</cod 67 endsWith(char s[], int len, char suffix[]) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PrefixAndSuffixAwareTokenFilter.java | 33 private PrefixAwareTokenFilter suffix; field in class:PrefixAndSuffixAwareTokenFilter 35 public PrefixAndSuffixAwareTokenFilter(TokenStream prefix, TokenStream input, TokenStream suffix) { argument 36 super(suffix); 43 this.suffix = new PrefixAwareTokenFilter(prefix, suffix) { 66 return suffix.incrementToken(); 71 suffix.reset(); 77 suffix.close(); 82 suffix.end();
|
H A D | PrefixAwareTokenFilter.java | 37 * The default implementation adds last prefix token end offset to the suffix token start and end offsets. 45 private TokenStream suffix; field in class:PrefixAwareTokenFilter 61 public PrefixAwareTokenFilter(TokenStream prefix, TokenStream suffix) { argument 62 super(suffix); 63 this.suffix = suffix; 138 if (!suffix.incrementToken()) return null; 149 * The default implementation adds last prefix token end offset to the suffix token start and end offsets. 151 * @param suffixToken a token from the suffix stream 164 suffix 199 setSuffix(TokenStream suffix) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ |
H A D | ArabicStemmer.java | 99 * Stem suffix(es) off an Arabic word. 133 * Returns true if the suffix matches and can be stemmed 136 * @param suffix suffix to check 137 * @return true if the suffix matches and can be stemmed 139 boolean endsWithCheckLength(char s[], int len, char suffix[]) { argument 140 if (len < suffix.length + 2) { // all suffixes require at least 2 characters after stemming 143 for (int i = 0; i < suffix.length; i++) 144 if (s[len - suffix.length + i] != suffix[ [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/ |
H A D | AbstractSubTypeFieldType.java | 41 protected String suffix; field in class:AbstractSubTypeFieldType 60 suffix = POLY_FIELD_SEPARATOR + subType.typeName; 63 suffix = subSuffix; 115 suffixes[i] = "_" + i + suffix;
|
H A D | CurrencyField.java | 171 private void createDynamicCurrencyField(String suffix, FieldType type) { argument 172 String name = "*" + POLY_FIELD_SEPARATOR + suffix;
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/ |
H A D | BrazilianStemmer.java | 283 * Check if a string ends with a suffix 285 * @return true if the string ends with the specified suffix 287 private boolean suffix( String value, String suffix ) { method in class:BrazilianStemmer 290 if ((value == null) || (suffix == null)) { 294 if (suffix.length() > value.length()) { 298 return value.substring(value.length()-suffix.length()).equals(suffix); 302 * Replace a string suffix by another 326 * Remove a string suffix 346 suffixPreceded( String value, String suffix, String preceded ) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/pt/ |
H A D | RSLPStemmerBase.java | 49 * <blockquote>{ "suffix", N, "replacement", { "exception1", "exception2", ...}}</blockquote> 52 * <li><code>suffix</code> is the suffix to be removed (such as "inho"). 54 * after removing the suffix (but before appending the replacement!) 55 * <li><code>replacement</code> is an optimal string to append after removing the suffix. 58 * not be stemmed. These patterns can be specified as whole word or suffix (ends-with) 90 protected final char suffix[]; field in class:RSLPStemmerBase.Rule 96 * @param suffix suffix to remove 100 public Rule(String suffix, in argument 130 RuleWithSetExceptions(String suffix, int min, String replacement, String[] exceptions) argument 154 RuleWithSuffixExceptions(String suffix, int min, String replacement, String[] exceptions) argument [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/ |
H A D | _TestUtil.java | 443 public static File createTempFile(String prefix, String suffix, File directory) argument 449 String newSuffix = suffix == null ? ".tmp" : suffix; 466 private static File genTempFile(String prefix, String suffix, File directory) { argument 482 newName.append(suffix);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/el/ |
H A D | GreekStemmer.java | 776 private boolean endsWith(char s[], int len, String suffix) { argument 777 final int suffixLen = suffix.length(); 781 if (s[len -(suffixLen - i)] != suffix.charAt(i))
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/hunspell/ |
H A D | HunspellStemmer.java | 36 * conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping. 122 for (HunspellAffix suffix : suffixes) { 123 if (hasCrossCheckedFlag(suffix.getFlag(), flags)) { 124 int deAffixedLength = length - suffix.getAppend().length(); 126 String strippedWord = new StringBuilder().append(word, 0, deAffixedLength).append(suffix.getStrip()).toString(); 128 List<Stem> stemList = applyAffix(strippedWord.toCharArray(), strippedWord.length(), suffix, recursionDepth); 130 stem.addSuffix(suffix); 249 * Adds a suffix to the list of suffixes used to generate this stem. Because it is assumed that suffixes are added 250 * depth first, the suffix is added to the end of the list 252 * @param suffix Suffi 254 addSuffix(HunspellAffix suffix) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/ |
H A D | BinaryDictionary.java | 134 protected final InputStream getResource(String suffix) throws IOException { argument 135 return getClassResource(getClass(), suffix); 139 public static final InputStream getClassResource(Class<?> clazz, String suffix) throws IOException { argument 140 final InputStream is = clazz.getResourceAsStream(clazz.getSimpleName() + suffix); 142 throw new FileNotFoundException("Not in classpath: " + clazz.getName().replace('.','/') + suffix); 174 int suffix = data & 0xF; 175 char text[] = new char[prefix+suffix]; 177 for (int i = 0; i < suffix; i++) {
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/ |
H A D | _TestUtil.java | 648 public static File createTempFile(String prefix, String suffix, File directory) argument 654 String newSuffix = suffix == null ? ".tmp" : suffix; 671 private static File genTempFile(String prefix, String suffix, File directory) { argument 687 newName.append(suffix);
|