Class DefaultSchemaOperations
java.lang.Object
org.springframework.data.solr.core.schema.DefaultSchemaOperations
- All Implemented Interfaces:
SchemaOperations
SchemaOperations implementation based on SolrTemplate.- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd givenSchemaDefinition.SchemaField.Get the current schema name.Get the current schema version.Read back theSchemaDefinitionfrom server.voidremoveField(String name) Remove the field with given name.
-
Constructor Details
-
DefaultSchemaOperations
-
-
Method Details
-
getSchemaName
Description copied from interface:SchemaOperationsGet the current schema name.- Specified by:
getSchemaNamein interfaceSchemaOperations- Returns:
-
getSchemaVersion
Description copied from interface:SchemaOperationsGet the current schema version.- Specified by:
getSchemaVersionin interfaceSchemaOperations- Returns:
-
readSchema
Description copied from interface:SchemaOperationsRead back theSchemaDefinitionfrom server.- Specified by:
readSchemain interfaceSchemaOperations- Returns:
-
addField
Description copied from interface:SchemaOperationsAdd givenSchemaDefinition.SchemaField.- Specified by:
addFieldin interfaceSchemaOperations- Parameters:
field- must not be null.
-
removeField
Description copied from interface:SchemaOperationsRemove the field with given name.- Specified by:
removeFieldin interfaceSchemaOperations- Parameters:
name- must not be null.
-