|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
com.atlassian.confluence.search.lucene.filter.FilenameFilter
public class FilenameFilter
This filter tokenises filenames using .-_ as delimiters. It is needed because the StandardTokenizer does not work very well with filenames - it does not split on . unless followed by a space and does not split on _ if the next term begins with a number.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
|---|
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
|---|
input |
| Constructor Summary | |
|---|---|
FilenameFilter(org.apache.lucene.analysis.TokenStream tokenStream)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.analysis.Token |
next()
|
| Methods inherited from class org.apache.lucene.analysis.TokenFilter |
|---|
close, end, reset |
| Methods inherited from class org.apache.lucene.analysis.TokenStream |
|---|
getOnlyUseNewAPI, incrementToken, next, setOnlyUseNewAPI |
| Methods inherited from class org.apache.lucene.util.AttributeSource |
|---|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilenameFilter(org.apache.lucene.analysis.TokenStream tokenStream)
| Method Detail |
|---|
public org.apache.lucene.analysis.Token next()
throws IOException
next in class org.apache.lucene.analysis.TokenStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||