Class MultiFieldQueryNodeProcessor
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
-
- org.apache.lucene.queryparser.flexible.standard.processors.MultiFieldQueryNodeProcessor
-
- All Implemented Interfaces:
QueryNodeProcessor
public class MultiFieldQueryNodeProcessor extends QueryNodeProcessorImpl
This processor is used to expand terms so the query looks for the same term in different fields. It also boosts a query based on its field.
This processor looks for everyFieldableNodecontained in the query node tree. If aFieldableNodeis found, it checks if there is aStandardQueryConfigHandler.ConfigurationKeys.MULTI_FIELDSdefined in theQueryConfigHandler. If there is, theFieldableNodeis cloned N times and the clones are added to aBooleanQueryNodetogether with the original node. N is defined by the number of fields that it will be expanded to. TheBooleanQueryNodeis returned.
-
-
Constructor Summary
Constructors Constructor Description MultiFieldQueryNodeProcessor()
-
Method Summary
-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
getQueryConfigHandler, process, setQueryConfigHandler
-
-