Package org.apache.solr.schema
Class CopyField
- java.lang.Object
- 
- org.apache.solr.schema.CopyField
 
- 
 public class CopyField extends Object CopyFieldcontains all the information of a valid copy fields in an index.- Since:
- solr 1.4
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intUNLIMITED
 - 
Constructor SummaryConstructors Constructor Description CopyField(SchemaField source, SchemaField destination)CopyField(SchemaField source, SchemaField destination, int maxChars)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaFieldgetDestination()StringgetLimitedValue(String val)intgetMaxChars()SchemaFieldgetSource()
 
- 
- 
- 
Field Detail- 
UNLIMITEDpublic static final int UNLIMITED - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CopyFieldpublic CopyField(SchemaField source, SchemaField destination) 
 - 
CopyFieldpublic CopyField(SchemaField source, SchemaField destination, int maxChars) - Parameters:
- source- The SchemaField of the source field.
- destination- The SchemaField of the destination field.
- maxChars- Maximum number of chars in source field to copy to destination field. If equal to 0, there is no limit.
 
 
- 
 - 
Method Detail- 
getSourcepublic SchemaField getSource() - Returns:
- source SchemaField
 
 - 
getDestinationpublic SchemaField getDestination() - Returns:
- destination SchemaField
 
 - 
getMaxCharspublic int getMaxChars() - Returns:
- the maximum number of chars in source field to copy to destination field.
 
 
- 
 
-