|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.schema.FieldType
org.apache.solr.schema.BoolField
public class BoolField
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType |
|---|
FieldType.DefaultAnalyzer |
| Field Summary | |
|---|---|
protected static org.apache.lucene.analysis.Analyzer |
boolAnalyzer
|
protected static org.apache.lucene.analysis.Token |
FALSE_TOKEN
|
protected static org.apache.lucene.analysis.Token |
TRUE_TOKEN
|
| Fields inherited from class org.apache.solr.schema.FieldType |
|---|
analyzer, args, falseProperties, log, queryAnalyzer, trueProperties, typeName |
| Constructor Summary | |
|---|---|
BoolField()
|
|
| Method Summary | |
|---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Returns the Analyzer to be used when indexing fields of this type. |
org.apache.lucene.analysis.Analyzer |
getQueryAnalyzer()
Returns the Analyzer to be used when searching fields of this type. |
org.apache.lucene.search.SortField |
getSortField(SchemaField field,
boolean reverse)
Returns the SortField instance that should be used to sort fields of this type. |
ValueSource |
getValueSource(SchemaField field)
|
String |
indexedToReadable(String indexedForm)
:TODO: document this method |
protected void |
init(IndexSchema schema,
Map<String,String> args)
subclasses should initialize themselves with the args provided and remove valid arguments. |
String |
toExternal(org.apache.lucene.document.Fieldable f)
Convert the stored-field format to an external (string, human readable) value |
String |
toInternal(String val)
Convert an external value (from XML update command or from query string) into the internal format. |
Boolean |
toObject(org.apache.lucene.document.Fieldable f)
Convert the stored-field format to an external object. |
void |
write(TextResponseWriter writer,
String name,
org.apache.lucene.document.Fieldable f)
calls back to TextResponseWriter to write the field value |
void |
write(XMLWriter xmlWriter,
String name,
org.apache.lucene.document.Fieldable f)
Renders the specified field as XML |
| Methods inherited from class org.apache.solr.schema.FieldType |
|---|
createField, getArg, getFieldIndex, getFieldStore, getFieldTermVec, getStringSort, getTypeName, getValueSource, isTokenized, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.lucene.analysis.Token TRUE_TOKEN
protected static final org.apache.lucene.analysis.Token FALSE_TOKEN
protected static final org.apache.lucene.analysis.Analyzer boolAnalyzer
| Constructor Detail |
|---|
public BoolField()
| Method Detail |
|---|
protected void init(IndexSchema schema,
Map<String,String> args)
FieldType
init in class FieldType
public org.apache.lucene.search.SortField getSortField(SchemaField field,
boolean reverse)
FieldType
getSortField in class FieldTypepublic ValueSource getValueSource(SchemaField field)
getValueSource in class FieldTypepublic org.apache.lucene.analysis.Analyzer getAnalyzer()
FieldTypeThis method may be called many times, at any time.
getAnalyzer in class FieldTypeFieldType.getQueryAnalyzer()public org.apache.lucene.analysis.Analyzer getQueryAnalyzer()
FieldTypeThis method may be called many times, at any time.
getQueryAnalyzer in class FieldTypeFieldType.getAnalyzer()public String toInternal(String val)
FieldType
toInternal in class FieldTypeFieldType.toExternal(org.apache.lucene.document.Fieldable)public String toExternal(org.apache.lucene.document.Fieldable f)
FieldType
toExternal in class FieldTypeFieldType.toInternal(java.lang.String)public Boolean toObject(org.apache.lucene.document.Fieldable f)
FieldType
toObject in class FieldTypeFieldType.toInternal(java.lang.String)public String indexedToReadable(String indexedForm)
FieldType
indexedToReadable in class FieldType
public void write(XMLWriter xmlWriter,
String name,
org.apache.lucene.document.Fieldable f)
throws IOException
FieldType
write in class FieldTypeIOException
public void write(TextResponseWriter writer,
String name,
org.apache.lucene.document.Fieldable f)
throws IOException
FieldType
write in class FieldTypeIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||