Class CmsSolrField

    • Constructor Detail

      • CmsSolrField

        public CmsSolrField​(CmsLuceneField luceneField)
        Public constructor.

        Parameters:
        luceneField - the lucene field read from the configuration.
      • CmsSolrField

        public CmsSolrField​(java.lang.String targetField,
                            java.util.List<java.lang.String> copyFields,
                            java.util.Locale locale,
                            java.lang.String defaultValue)
        Public constructor.

        Parameters:
        targetField - the target field name
        copyFields - the field names to copy this field's value to
        locale - the locale
        defaultValue - the default value
    • Method Detail

      • getCopyFields

        public java.util.List<java.lang.String> getCopyFields()
        Returns the copy fields.

        Returns:
        the copy fields.

      • getLocale

        public java.util.Locale getLocale()
        Returns the locale of this field or null if the field does not have a locale.

        Returns:
        the locale of this field
      • getTargetField

        public java.lang.String getTargetField()
        Returns the target field name.

        Returns:
        the target field name
      • setCopyFields

        public void setCopyFields​(java.util.List<java.lang.String> copyFields)
        Sets the copy field names.

        Parameters:
        copyFields - the field name to use as copy fields
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale.

        Parameters:
        locale - the locale to set
      • setTargetField

        public void setTargetField​(java.lang.String targetField)
        Sets the target field name.

        Parameters:
        targetField - the name to set