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