|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenFilterFactory
A TokenFilterFactory
creates a
TokenFilter
to transform one TokenStream
into another.
TokenFilterFactories are registered for FieldType
s with the
IndexSchema
through the schema.xml
file.
Example schema.xml
entry to register a TokenFilterFactory
implementation to transform tokens in a field of type "cool"
<fieldtype name="cool" class="solr.TextField"> <analyzer> ... <filter class="foo.MyTokenFilterFactory"/> ...
A single instance of any registered TokenFilterFactory is created via the default constructor and is reused for each FieldType.
Method Summary | |
---|---|
org.apache.lucene.analysis.TokenStream |
create(org.apache.lucene.analysis.TokenStream input)
Transform the specified input TokenStream |
java.util.Map<java.lang.String,java.lang.String> |
getArgs()
Accessor method for reporting the args used to initialize this factory. |
void |
init(java.util.Map<java.lang.String,java.lang.String> args)
init will be called just once, immediately after creation. |
Method Detail |
---|
void init(java.util.Map<java.lang.String,java.lang.String> args)
init
will be called just once, immediately after creation.
The args are user-level initialization parameters that may be specified when declaring a the factory in the schema.xml
java.util.Map<java.lang.String,java.lang.String> getArgs()
Implementations are strongly encouraged to return the contents of the Map passed to to the init method
org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |