|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.schema.SchemaField
public final class SchemaField
Encapsulates all information about a Field in a Solr Schema
Constructor Summary | |
---|---|
SchemaField(SchemaField prototype,
java.lang.String name)
Create a new SchemaField from an existing one by using all of the properties of the prototype except the field name. |
|
SchemaField(java.lang.String name,
FieldType type)
Create a new SchemaField with the given name and type, using all the default properties from the type. |
|
SchemaField(java.lang.String name,
FieldType type,
int properties,
java.lang.String defaultValue)
Create a new SchemaField with the given name and type, and with the specified properties. |
Method Summary | |
---|---|
org.apache.lucene.document.Field |
createField(java.lang.String val,
float boost)
|
java.lang.String |
getDefaultValue()
|
java.lang.String |
getName()
|
org.apache.lucene.search.SortField |
getSortField(boolean top)
|
FieldType |
getType()
|
boolean |
indexed()
|
boolean |
isCompressed()
|
boolean |
isRequired()
|
boolean |
multiValued()
|
boolean |
omitNorms()
|
boolean |
sortMissingFirst()
|
boolean |
sortMissingLast()
|
boolean |
stored()
|
boolean |
storeTermOffsets()
|
boolean |
storeTermPositions()
|
boolean |
storeTermVector()
|
java.lang.String |
toString()
|
void |
write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable val)
|
void |
write(XMLWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaField(java.lang.String name, FieldType type)
public SchemaField(SchemaField prototype, java.lang.String name)
public SchemaField(java.lang.String name, FieldType type, int properties, java.lang.String defaultValue)
Method Detail |
---|
public java.lang.String getName()
public FieldType getType()
public boolean indexed()
public boolean stored()
public boolean storeTermVector()
public boolean storeTermPositions()
public boolean storeTermOffsets()
public boolean omitNorms()
public boolean multiValued()
public boolean sortMissingFirst()
public boolean sortMissingLast()
public boolean isCompressed()
public boolean isRequired()
public org.apache.lucene.document.Field createField(java.lang.String val, float boost)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(XMLWriter writer, java.lang.String name, org.apache.lucene.document.Fieldable val) throws java.io.IOException
java.io.IOException
public void write(TextResponseWriter writer, java.lang.String name, org.apache.lucene.document.Fieldable val) throws java.io.IOException
java.io.IOException
public org.apache.lucene.search.SortField getSortField(boolean top)
public java.lang.String getDefaultValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |