com.atlassian.confluence.search.lucene.filter
Class FilenameFilter

java.lang.Object
  extended by org.apache.lucene.analysis.TokenStream
      extended by org.apache.lucene.analysis.TokenFilter
          extended by com.atlassian.confluence.search.lucene.filter.FilenameFilter
All Implemented Interfaces:
org.apache.lucene.analysis.standard.StandardTokenizerConstants

public class FilenameFilter
extends org.apache.lucene.analysis.TokenFilter
implements org.apache.lucene.analysis.standard.StandardTokenizerConstants

Currently, the StandardTokenizer takes anything of the 'alpha.java' form, and keeps it all together. This is useful, however it prevents searches on just the 'alpha' form.

An example is searching for 'atlassian' when 'atlassian.doc' has been indexed.

This filter tokenizes the individual words, as well as the full phrase, allowing searching to be done on either.


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.TokenFilter
input
 
Fields inherited from interface org.apache.lucene.analysis.standard.StandardTokenizerConstants
ACRONYM, ALPHA, ALPHANUM, APOSTROPHE, CJ, COMPANY, DEFAULT, DIGIT, EMAIL, EOF, HAS_DIGIT, HOST, KOREAN, LETTER, NOISE, NUM, P, tokenImage
 
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
 
Methods inherited from class org.apache.lucene.analysis.TokenStream
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilenameFilter

public FilenameFilter(org.apache.lucene.analysis.TokenStream tokenStream)
Method Detail

next

public org.apache.lucene.analysis.Token next()
                                      throws java.io.IOException
Specified by:
next in class org.apache.lucene.analysis.TokenStream
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.