Class FilterQueryRequestProcessor
java.lang.Object
org.opensearch.search.pipeline.common.FilterQueryRequestProcessor
- All Implemented Interfaces:
Processor,SearchRequestProcessor
This is a
SearchRequestProcessor that replaces the incoming query with a BooleanQuery
that MUST match the incoming query with a FILTER clause based on the configured query.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.search.pipeline.Processor
Processor.Parameters -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterQueryRequestProcessor(String tag, String description, QueryBuilder filterQuery) Constructor that takes a filter query. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.search.pipeline.Processor
getDescription, getTag
-
Field Details
-
TYPE
Key to reference this processor type from a search pipeline.- See Also:
-
-
Constructor Details
-
FilterQueryRequestProcessor
Constructor that takes a filter query.- Parameters:
tag- processor tagdescription- processor descriptionfilterQuery- the query that will be added as a filter to incoming queries
-
-
Method Details
-
getType
-
processRequest
- Specified by:
processRequestin interfaceSearchRequestProcessor- Throws:
Exception
-
getTag
-
getDescription
- Specified by:
getDescriptionin interfaceProcessor
-