org.apache.solr.schema
Class TextField
java.lang.Object
org.apache.solr.schema.FieldType
org.apache.solr.schema.CompressableField
org.apache.solr.schema.TextField
public class TextField
- extends CompressableField
TextField
is the basic type for configurable text analysis.
Analyzers for field types using this implementation should be defined in the schema.
- Version:
- $Id: TextField.java 479793 2006-11-27 22:40:21Z klaas $
- Author:
- yonik
Method Summary |
org.apache.lucene.search.SortField |
getSortField(SchemaField field,
boolean reverse)
Returns the SortField instance that should be used to sort fields
of this type. |
protected void |
init(IndexSchema schema,
java.util.Map<java.lang.String,java.lang.String> args)
subclasses should initialize themselves with the args provided
and remove valid arguments. |
void |
write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
calls back to TextResponseWriter to write the field value |
void |
write(XMLWriter xmlWriter,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
Renders the specified field as XML |
Methods inherited from class org.apache.solr.schema.FieldType |
createField, getAnalyzer, getFieldIndex, getFieldTermVec, getQueryAnalyzer, getStringSort, getTypeName, getValueSource, indexedToReadable, isTokenized, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toExternal, toInternal, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextField
public TextField()
init
protected void init(IndexSchema schema,
java.util.Map<java.lang.String,java.lang.String> args)
- Description copied from class:
FieldType
- subclasses should initialize themselves with the args provided
and remove valid arguments. leftover arguments will cause an exception.
Common boolean properties have already been handled.
- Overrides:
init
in class CompressableField
getSortField
public org.apache.lucene.search.SortField getSortField(SchemaField field,
boolean reverse)
- Description copied from class:
FieldType
- Returns the SortField instance that should be used to sort fields
of this type.
- Specified by:
getSortField
in class FieldType
write
public void write(XMLWriter xmlWriter,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
throws java.io.IOException
- Description copied from class:
FieldType
- Renders the specified field as XML
- Specified by:
write
in class FieldType
- Throws:
java.io.IOException
write
public void write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
throws java.io.IOException
- Description copied from class:
FieldType
- calls back to TextResponseWriter to write the field value
- Specified by:
write
in class FieldType
- Throws:
java.io.IOException
Copyright © 2006 - 2008 The Apache Software Foundation