Class RenameFieldResponseProcessor

java.lang.Object
org.opensearch.search.pipeline.AbstractProcessor
org.opensearch.search.pipeline.common.RenameFieldResponseProcessor
All Implemented Interfaces:
Processor, SearchResponseProcessor

public class RenameFieldResponseProcessor extends AbstractProcessor implements SearchResponseProcessor
This is a SearchRequestProcessor that renames a field before returning the search response
  • Field Details

  • Constructor Details

    • RenameFieldResponseProcessor

      public RenameFieldResponseProcessor(String tag, String description, boolean ignoreFailure, String oldField, String newField, boolean ignoreMissing)
      Constructor that takes a target field to rename and the new name
      Parameters:
      tag - processor tag
      description - processor description
      ignoreFailure - option to ignore failure
      oldField - name of field to be renamed
      newField - name of field that will replace the old field
      ignoreMissing - if true, do not throw error if oldField does not exist within search response
  • Method Details