Searched defs:termAtt (Results 1 - 25 of 160) sorted by relevance

1234567

/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/collation/
H A DICUCollationKeyFilter.java75 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ICUCollationKeyFilter
95 char[] termBuffer = termAtt.buffer();
96 String termText = new String(termBuffer, 0, termAtt.length());
101 termAtt.resizeBuffer(encodedLength);
103 termAtt.setLength(encodedLength);
105 termAtt.buffer(), 0, encodedLength);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DKeywordMarkerFilter.java37 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:KeywordMarkerFilter
74 if (keywordSet.contains(termAtt.buffer(), 0, termAtt.length())) {
H A DLowerCaseFilter.java37 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:LowerCaseFilter
61 final char[] buffer = termAtt.buffer();
62 final int length = termAtt.length();
H A DPorterStemFilter.java51 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:PorterStemFilter
63 if ((!keywordAttr.isKeyword()) && stemmer.stem(termAtt.buffer(), 0, termAtt.length()))
64 termAtt.copyBuffer(stemmer.getResultBuffer(), 0, stemmer.getResultLength());
H A DASCIIFoldingFilter.java68 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ASCIIFoldingFilter
73 final char[] buffer = termAtt.buffer();
74 final int length = termAtt.length();
83 termAtt.copyBuffer(output, 0, outputPos);
H A DISOLatin1AccentFilter.java42 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ISOLatin1AccentFilter
47 final char[] buffer = termAtt.buffer();
48 final int length = termAtt.length();
55 termAtt.copyBuffer(output, 0, outputPos);
H A DLengthFilter.java35 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:LengthFilter
59 final int len = termAtt.length();
H A DStopFilter.java44 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:StopFilter
252 return !stopWords.contains(termAtt.buffer(), 0, termAtt.length());
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/collation/
H A DCollationKeyFilter.java77 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:CollationKeyFilter
93 byte[] collationKey = collator.getCollationKey(termAtt.toString()).toByteArray();
96 termAtt.resizeBuffer(encodedLength);
97 termAtt.setLength(encodedLength);
99 termAtt.buffer(), 0, encodedLength);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestISOLatin1AccentFilter.java27 CharTermAttribute termAtt = filter.getAttribute(CharTermAttribute.class);
28 assertTermEquals("Des", filter, termAtt);
29 assertTermEquals("mot", filter, termAtt);
30 assertTermEquals("cles", filter, termAtt);
31 assertTermEquals("A", filter, termAtt);
32 assertTermEquals("LA", filter, termAtt);
33 assertTermEquals("CHAINE", filter, termAtt);
34 assertTermEquals("A", filter, termAtt);
35 assertTermEquals("A", filter, termAtt);
36 assertTermEquals("A", filter, termAtt);
106 assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) argument
[all...]
H A DTestASCIIFoldingFilter.java45 CharTermAttribute termAtt = filter.getAttribute(CharTermAttribute.class);
47 assertTermEquals("Des", filter, termAtt);
48 assertTermEquals("mot", filter, termAtt);
49 assertTermEquals("cles", filter, termAtt);
50 assertTermEquals("A", filter, termAtt);
51 assertTermEquals("LA", filter, termAtt);
52 assertTermEquals("CHAINE", filter, termAtt);
53 assertTermEquals("A", filter, termAtt);
54 assertTermEquals("A", filter, termAtt);
55 assertTermEquals("A", filter, termAtt);
1911 assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) argument
[all...]
H A DTestKeywordMarkerFilter.java70 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:TestKeywordMarkerFilter.LowerCaseFilterMock
81 final String term = termAtt.toString().toLowerCase(Locale.ENGLISH);
82 termAtt.setEmpty().append(term);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DKeepWordFilter.java37 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:KeepWordFilter
54 return words.contains(termAtt.buffer(), 0, termAtt.length());
H A DTrimFilter.java35 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:TrimFilter
48 char[] termBuffer = termAtt.buffer();
49 int len = termAtt.length();
69 termAtt.copyBuffer(termBuffer, start, (end - start));
71 termAtt.setEmpty();
H A DPatternReplaceFilter.java45 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:PatternReplaceFilter
67 this.m = p.matcher(termAtt);
78 termAtt.setEmpty().append(transformed);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/
H A DTestISOLatin1AccentFilter.java27 CharTermAttribute termAtt = filter.getAttribute(CharTermAttribute.class);
28 assertTermEquals("Des", filter, termAtt);
29 assertTermEquals("mot", filter, termAtt);
30 assertTermEquals("cles", filter, termAtt);
31 assertTermEquals("A", filter, termAtt);
32 assertTermEquals("LA", filter, termAtt);
33 assertTermEquals("CHAINE", filter, termAtt);
34 assertTermEquals("A", filter, termAtt);
35 assertTermEquals("A", filter, termAtt);
36 assertTermEquals("A", filter, termAtt);
106 assertTermEquals(String expected, TokenStream stream, CharTermAttribute termAtt) argument
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/
H A DArabicNormalizationFilter.java33 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ArabicNormalizationFilter
42 int newlen = normalizer.normalize(termAtt.buffer(), termAtt.length());
43 termAtt.setLength(newlen);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fa/
H A DPersianNormalizationFilter.java34 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:PersianNormalizationFilter
43 final int newlen = normalizer.normalize(termAtt.buffer(),
44 termAtt.length());
45 termAtt.setLength(newlen);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/in/
H A DIndicNormalizationFilter.java31 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:IndicNormalizationFilter
41 termAtt.setLength(normalizer.normalize(termAtt.buffer(), termAtt.length()));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/
H A DRussianLowerCaseFilter.java35 private CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:RussianLowerCaseFilter
46 char[] chArray = termAtt.buffer();
47 int chLen = termAtt.length();
/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/analysis/icu/
H A DICUNormalizer2Filter.java56 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ICUNormalizer2Filter
81 if (normalizer.quickCheck(termAtt) != Normalizer.YES) {
83 normalizer.normalize(termAtt, buffer);
84 termAtt.setEmpty().append(buffer);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/
H A DClassicFilter.java39 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:ClassicFilter
51 final char[] buffer = termAtt.buffer();
52 final int bufferLength = termAtt.length();
60 termAtt.setLength(bufferLength - 2);
68 termAtt.setLength(upto);
H A DStandardFilter.java50 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:StandardFilter
65 final char[] buffer = termAtt.buffer();
66 final int bufferLength = termAtt.length();
74 termAtt.setLength(bufferLength - 2);
82 termAtt.setLength(upto);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTest2BPostings.java83 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:Test2BPostings.MyTokenStream
88 termAtt.setLength(1);
89 buffer = termAtt.buffer();
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/
H A DCannedTokenStream.java33 private final CharTermAttribute termAtt = addAttribute(CharTermAttribute.class); field in class:CannedTokenStream
49 termAtt.setEmpty();
50 termAtt.append(token.toString());

Completed in 58 milliseconds

1234567