Class CopyFieldDefinition
java.lang.Object
org.ametys.cms.search.solr.schema.CopyFieldDefinition
- All Implemented Interfaces:
SchemaDefinition
Represents a copy field definition in a solr schema.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCopyFieldDefinition
(String source, String destination) Build a copy field definition.CopyFieldDefinition
(Map<String, Object> attributes) Build a copy field definition from a map of attributes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists
(SchemaFields schemaFields) Test if the definition is already definedGet the destination field.org.apache.solr.client.solrj.request.schema.SchemaRequest.Update
Get the schema request update.Get the source field.void
setDestination
(String destination) Set the destination field.void
Set the source field.
-
Field Details
-
_source
The source field. -
_destination
The destination field.
-
-
Constructor Details
-
CopyFieldDefinition
Build a copy field definition.- Parameters:
source
- The source field.destination
- The destination field.
-
CopyFieldDefinition
Build a copy field definition from a map of attributes.- Parameters:
attributes
- the Map of attributes.
-
-
Method Details
-
getSource
Get the source field.- Returns:
- The source field.
-
setSource
Set the source field.- Parameters:
source
- the source field.
-
getDestination
Get the destination field.- Returns:
- The destination field.
-
setDestination
Set the destination field.- Parameters:
destination
- the destination field.
-
getSchemaUpdate
Description copied from interface:SchemaDefinition
Get the schema request update.- Specified by:
getSchemaUpdate
in interfaceSchemaDefinition
- Returns:
- The update request
-
exists
Description copied from interface:SchemaDefinition
Test if the definition is already defined- Specified by:
exists
in interfaceSchemaDefinition
- Parameters:
schemaFields
- the existing schema fields- Returns:
true
if the definition is in the schema fields
-