|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.schema.IndexSchema
org.apache.solr.schema.ManagedIndexSchema
public final class ManagedIndexSchema
Solr-managed schema - non-user-editable, but can be mutable via internal and external REST API requests.
| Nested Class Summary | |
|---|---|
class |
ManagedIndexSchema.FieldExistsException
|
| Nested classes/interfaces inherited from class org.apache.solr.schema.IndexSchema |
|---|
IndexSchema.DynamicCopy, IndexSchema.DynamicField, IndexSchema.DynamicReplacement |
| Field Summary |
|---|
| Method Summary | |
|---|---|
ManagedIndexSchema |
addCopyFields(Map<String,Collection<String>> copyFields)
Copies this schema and adds the new copy fields to the copy, then persists the new schema |
ManagedIndexSchema |
addField(SchemaField newField)
Copies this schema, adds the given field to the copy, then persists the new schema. |
ManagedIndexSchema |
addField(SchemaField newField,
Collection<String> copyFieldNames)
Copies this schema, adds the given field to the copy, then persists the new schema. |
ManagedIndexSchema |
addFields(Collection<SchemaField> newFields)
Copies this schema, adds the given fields to the copy, then persists the new schema. |
ManagedIndexSchema |
addFields(Collection<SchemaField> newFields,
Map<String,Collection<String>> copyFieldNames)
Copies this schema, adds the given fields to the copy, then persists the new schema. |
Object |
getSchemaUpdateLock()
|
boolean |
isMutable()
|
SchemaField |
newField(String fieldName,
String fieldType,
Map<String,?> options)
Returns a SchemaField if the given fieldName does not already exist in this schema, and does not match any dynamic fields in this schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isMutable()
isMutable in class IndexSchemapublic ManagedIndexSchema addField(SchemaField newField)
IndexSchema
addField in class IndexSchemanewField - the SchemaField to add
IndexSchema.newField(String, String, Map)
public ManagedIndexSchema addField(SchemaField newField,
Collection<String> copyFieldNames)
IndexSchema
addField in class IndexSchemanewField - the SchemaField to addcopyFieldNames - 0 or more names of targets to copy this field to. The targets must already exist.
IndexSchema.newField(String, String, Map)public ManagedIndexSchema addFields(Collection<SchemaField> newFields)
IndexSchema
addFields in class IndexSchemanewFields - the SchemaFields to add
IndexSchema.newField(String, String, Map)
public ManagedIndexSchema addFields(Collection<SchemaField> newFields,
Map<String,Collection<String>> copyFieldNames)
IndexSchema
addFields in class IndexSchemanewFields - the SchemaFields to addcopyFieldNames - 0 or more names of targets to copy this field to. The target fields must already exist.
IndexSchema.newField(String, String, Map)public ManagedIndexSchema addCopyFields(Map<String,Collection<String>> copyFields)
IndexSchema
addCopyFields in class IndexSchemacopyFields - Key is the name of the source field name, value is a collection of target field names. Fields must exist.
public SchemaField newField(String fieldName,
String fieldType,
Map<String,?> options)
IndexSchemaIndexSchema.addField(SchemaField).
newField in class IndexSchemafieldName - the name of the field to addfieldType - the field type for the new fieldoptions - the options to use when creating the SchemaField
IndexSchema.addField(SchemaField)public Object getSchemaUpdateLock()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||