com.atlassian.confluence.search.lucene.filter
Interface ConfluenceNGramTokenFilter.Callback

Enclosing class:
ConfluenceNGramTokenFilter

public static interface ConfluenceNGramTokenFilter.Callback

Callback interface to allow filtering on n-gram tokens


Method Summary
 boolean keepToken(int pos, org.apache.lucene.analysis.Token token)
           
 

Method Detail

keepToken

boolean keepToken(int pos,
                  org.apache.lucene.analysis.Token token)
Parameters:
pos - offset from the original token that we are trying to convert into n-grams
token - ngram token we are considering for inclusion
Returns:
true if we want to keep this token


Copyright © 2003-2011 Atlassian. All Rights Reserved.