com.atlassian.jira.issue.index.analyzer
Class ExceptionFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
com.atlassian.jira.issue.index.analyzer.ExceptionFilter
- All Implemented Interfaces:
- org.apache.lucene.analysis.standard.StandardTokenizerConstants
- public class ExceptionFilter
- extends org.apache.lucene.analysis.TokenFilter
- implements org.apache.lucene.analysis.standard.StandardTokenizerConstants
Currently, the StandardTokenizer takes anything of the 'alpha.alpha.alpha' form,
and keeps it all together. This is useful, however it prevents searches on just the
'alpha' form.
An example is searching for 'NullPointerException' when 'java.lang.NullPointerException' has
been indexed.
This filter tokenizes the individual words, as well as the full phrase, allowing searching to
be done on either.
In addition, a comma separated list of numbers (eg "123,456,789") is not tokenized at the commas.
This prevents searching on just "123".
This filter toeknizes the individual numbers, as well as the full phrase, allowing searching to
be done on either. (JRA-7774)
Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
Fields inherited from interface org.apache.lucene.analysis.standard.StandardTokenizerConstants |
ACRONYM, ALPHA, ALPHANUM, APOSTROPHE, CJK, COMPANY, DEFAULT, DIGIT, EMAIL, EOF, HAS_DIGIT, HOST, LETTER, NOISE, NUM, P, tokenImage |
Constructor Summary |
ExceptionFilter(org.apache.lucene.analysis.TokenStream tokenStream)
|
Method Summary |
org.apache.lucene.analysis.Token |
next()
|
Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lucene.analysis.standard.StandardTokenizerConstants |
|
ExceptionFilter
public ExceptionFilter(org.apache.lucene.analysis.TokenStream tokenStream)
next
public org.apache.lucene.analysis.Token next()
throws IOException
- Throws:
IOException
Copyright © 2002-2006 Atlassian. All Rights Reserved.