Class AllowLeadingWildcardProcessor

java.lang.Object
org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl
org.apache.lucene.queryparser.flexible.standard.processors.AllowLeadingWildcardProcessor
All Implemented Interfaces:
QueryNodeProcessor

public class AllowLeadingWildcardProcessor extends QueryNodeProcessorImpl
This processor verifies if StandardQueryConfigHandler.ConfigurationKeys.ALLOW_LEADING_WILDCARD is defined in the QueryConfigHandler. If it is and leading wildcard is not allowed, it looks for every WildcardQueryNode contained in the query node tree and throws an exception if any of them has a leading wildcard ('*' or '?').
See Also: