Class CollapseResponseProcessor

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

public class CollapseResponseProcessor extends AbstractProcessor implements SearchResponseProcessor
A simple implementation of field collapsing on search responses. Note that this is not going to work as well as field collapsing at the shard level, as implemented with the "collapse" parameter in a search request. Mostly just using this to demo the oversample / truncate_hits processors.