Class AllValuesOrNoneFieldMutatingUpdateProcessor

    • Field Detail

      • DELETE_VALUE_SINGLETON

        public static final Object DELETE_VALUE_SINGLETON
      • SKIP_FIELD_VALUE_LIST_SINGLETON

        public static final Object SKIP_FIELD_VALUE_LIST_SINGLETON
    • Method Detail

      • mutateValue

        protected abstract Object mutateValue​(Object srcVal)
        Mutates individual values of a field as needed, or returns the original value.
        Parameters:
        srcVal - a value from a matched field which should be mutated
        Returns:
        the value to use as a replacement for src, or DELETE_VALUE_SINGLETON to indicate that the value should be removed completely, or SKIP_FIELD_VALUE_LIST_SINGLETON to indicate that a field value is not consistent with
        See Also:
        DELETE_VALUE_SINGLETON, SKIP_FIELD_VALUE_LIST_SINGLETON
      • mutate

        protected final org.apache.solr.common.SolrInputField mutate​(org.apache.solr.common.SolrInputField srcField)
        Description copied from class: FieldMutatingUpdateProcessor
        Method for mutating SolrInputFields associated with fields identified by the FieldNameSelector associated with this processor
        Specified by:
        mutate in class FieldMutatingUpdateProcessor
        Parameters:
        srcField - the SolrInputField to mutate, may be modified in place and returned
        Returns:
        the SolrInputField to use in replacing the original (src) value. If null the field will be removed.