| org.apache.solr.analysis.BaseTokenTestCase
All known Subclasses: org.apache.solr.analysis.TestBufferedTokenStream, org.apache.solr.analysis.TestHyphenatedWordsFilter, org.apache.solr.analysis.TestPhoneticFilter, org.apache.solr.analysis.TestTrimFilter, org.apache.solr.analysis.TestSynonymFilter,
BaseTokenTestCase | abstract public class BaseTokenTestCase extends TestCase (Code) | | General token testing helper functions
|
Inner Class :public static class IterTokenStream extends TokenStream | |
assertTokEqual | public void assertTokEqual(List<Token> a, List<Token> b)(Code) | | |
assertTokEqualOff | public void assertTokEqualOff(List<Token> a, List<Token> b)(Code) | | |
tokAt | public boolean tokAt(List<Token> lst, String val, int tokPos, int startOff, int endOff)(Code) | | |
tokens | public List<Token> tokens(String str)(Code) | | Return a list of tokens according to a test string format:
a b c => returns List [a,b,c]
a/b => tokens a and b share the same spot (b.positionIncrement=0)
a,3/b/c => a,b,c all share same position (a.positionIncrement=3, b.positionIncrement=0, c.positionIncrement=0)
a,1,10,11 => "a" with positionIncrement=1, startOffset=10, endOffset=11
|
|
|