public class MultiTermRewriteMethodProcessor extends QueryNodeProcessorImpl
MultiTermQuery.RewriteMethod
,
MultiTermQuery.CONSTANT_SCORE_REWRITE
, for multi-term
query nodes.Constructor and Description |
---|
MultiTermRewriteMethodProcessor() |
Modifier and Type | Method and Description |
---|---|
protected QueryNode |
postProcessNode(QueryNode node)
This method is invoked for every node when walking up the tree.
|
protected QueryNode |
preProcessNode(QueryNode node)
This method is invoked for every node when walking down the tree.
|
protected List<QueryNode> |
setChildrenOrder(List<QueryNode> children)
This method is invoked for every node that has at least on child.
|
getQueryConfigHandler, process, processChildren, setQueryConfigHandler
public static final String TAG_ID
protected QueryNode postProcessNode(QueryNode node)
QueryNodeProcessorImpl
postProcessNode
in class QueryNodeProcessorImpl
node
- node the query node to be post-processedprotected QueryNode preProcessNode(QueryNode node)
QueryNodeProcessorImpl
preProcessNode
in class QueryNodeProcessorImpl
node
- the query node to be pre-processedprotected List<QueryNode> setChildrenOrder(List<QueryNode> children)
QueryNodeProcessorImpl
QueryNodeProcessorImpl.postProcessNode(QueryNode)
is invoked.setChildrenOrder
in class QueryNodeProcessorImpl
children
- the list containing all current node's childrenCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.