Searched defs:node (Results 1 - 25 of 48) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/
H A DBooleanModifierNode.java35 public BooleanModifierNode(QueryNode node, Modifier mod) { argument
36 super(node, mod);
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/
H A DSpanOrQueryNodeBuilder.java38 public SpanOrQuery build(QueryNode node) throws QueryNodeException { argument
40 // validates node
41 BooleanQueryNode booleanNode = (BooleanQueryNode) node;
H A DSpanTermQueryNodeBuilder.java33 public SpanTermQuery build(QueryNode node) throws QueryNodeException { argument
34 FieldQueryNode fieldQueryNode = (FieldQueryNode) node;
H A DSpansValidatorQueryNodeProcessor.java33 * Validates every query node in a query node tree. This processor will pass
45 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
47 return node;
52 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
54 if (!((node instanceof BooleanQueryNode && !(node instanceof AndQueryNode)) || node
60 return node;
H A DUniqueFieldQueryNodeProcessor.java30 * node contained in the query tree to the field name defined in the
41 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
43 return node;
48 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
50 if (node instanceof FieldableNode) {
51 FieldableNode fieldNode = (FieldableNode) node;
70 return node;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/
H A DNoChildOptimizationQueryNodeProcessor.java50 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
52 if (node instanceof BooleanQueryNode || node instanceof BoostQueryNode
53 || node instanceof TokenizedPhraseQueryNode
54 || node instanceof ModifierQueryNode) {
56 List<QueryNode> children = node.getChildren();
63 return node;
74 return node;
79 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
81 return node;
[all...]
H A DRemoveDeletedQueryNodesProcessor.java30 * {@link DeletedQueryNode} from a query node tree. If the resulting root node
56 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
58 if (!node.isLeaf()) {
59 List<QueryNode> children = node.getChildren();
86 return node;
107 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
109 return node;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/
H A DBooleanQueryNodeBuilder.java86 private static BooleanClause.Occur getModifierValue(QueryNode node) argument
89 if (node instanceof ModifierQueryNode) {
90 ModifierQueryNode mNode = ((ModifierQueryNode) node);
H A DStandardBooleanQueryNodeBuilder.java87 private static BooleanClause.Occur getModifierValue(QueryNode node) argument
90 if (node instanceof ModifierQueryNode) {
91 ModifierQueryNode mNode = ((ModifierQueryNode) node);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/
H A DAllowLeadingWildcardProcessor.java37 * looks for every {@link WildcardQueryNode} contained in the query node tree
64 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
66 if (node instanceof WildcardQueryNode) {
67 WildcardQueryNode wildcardNode = (WildcardQueryNode) node;
73 return node;
79 QueryParserMessages.LEADING_WILDCARD_NOT_ALLOWED, node
86 return node;
91 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
93 return node;
H A DAnalyzerQueryNodeProcessor.java54 * {@link ParametricQueryNode} contained in the query node tree, then it applies
105 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
107 if (node instanceof TextableQueryNode
108 && !(node instanceof WildcardQueryNode)
109 && !(node instanceof FuzzyQueryNode)
110 && !(node instanceof ParametricQueryNode)) {
112 FieldQueryNode fieldNode = ((FieldQueryNode) node);
188 } else if (severalTokensAtSamePosition || !(node instanceof QuotedFieldQueryNode)) {
189 if (positionCount == 1 || !(node instanceof QuotedFieldQueryNode)) {
319 return node;
324 preProcessNode(QueryNode node) argument
[all...]
H A DBooleanSingleChildOptimizationQueryNodeProcessor.java46 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
48 if (node instanceof BooleanQueryNode) {
49 List<QueryNode> children = node.getChildren();
72 return node;
77 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
79 return node;
H A DBoostQueryNodeProcessor.java33 * This processor iterates the query node tree looking for every
44 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
46 if (node instanceof FieldableNode &&
47 (node.getParent() == null || !(node.getParent() instanceof FieldableNode))) {
49 FieldableNode fieldNode = (FieldableNode) node;
60 return new BoostQueryNode(node, boost);
69 return node;
74 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
76 return node;
[all...]
H A DDefaultPhraseSlopQueryNodeProcessor.java73 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
75 if (node instanceof TokenizedPhraseQueryNode
76 || node instanceof MultiPhraseQueryNode) {
78 return new SlopQueryNode(node, this.defaultPhraseSlop);
82 return node;
87 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
89 if (node instanceof SlopQueryNode) {
94 return node;
H A DFuzzyQueryNodeProcessor.java32 * This processor iterates the query node tree looking for every
33 * {@link FuzzyQueryNode}, when this kind of node is found, it checks on the
36 * fuzzy prefix length and default similarity from it and set to the fuzzy node.
46 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
48 return node;
53 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
55 if (node instanceof FuzzyQueryNode) {
56 FuzzyQueryNode fuzzyNode = (FuzzyQueryNode) node;
74 return node;
H A DLowercaseExpandedTermsQueryNodeProcessor.java63 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
65 if (node instanceof WildcardQueryNode || node instanceof FuzzyQueryNode
66 || node instanceof ParametricQueryNode) {
68 FieldQueryNode fieldNode = (FieldQueryNode) node;
72 return node;
77 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
79 return node;
H A DMatchAllDocsQueryNodeProcessor.java44 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
46 if (node instanceof FieldQueryNode) {
47 FieldQueryNode fqn = (FieldQueryNode) node;
58 return node;
63 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
65 return node;
H A DMultiFieldQueryNodeProcessor.java37 * node tree. If a {@link FieldableNode} is found, it checks if there is a
40 * added to a {@link BooleanQueryNode} together with the original node. N is
55 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
57 return node;
74 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
76 if (node instanceof FieldableNode) {
78 FieldableNode fieldNode = (FieldableNode) node;
121 return node;
H A DMultiTermRewriteMethodProcessor.java41 protected QueryNode postProcessNode(QueryNode node) { argument
45 if (node instanceof WildcardQueryNode
46 || node instanceof AbstractRangeQueryNode) {
61 node.setTag(MultiTermRewriteMethodProcessor.TAG_ID, rewriteMethod);
65 return node;
69 protected QueryNode preProcessNode(QueryNode node) { argument
70 return node;
H A DNumericQueryNodeProcessor.java69 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
71 if (node instanceof FieldQueryNode
72 && !(node instanceof ParametricQueryNode)) {
77 FieldQueryNode fieldNode = (FieldQueryNode) node;
130 return node;
135 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
136 return node;
H A DNumericRangeQueryNodeProcessor.java65 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
67 if (node instanceof ParametricRangeQueryNode) {
71 ParametricRangeQueryNode parametricRangeNode = (ParametricRangeQueryNode) node;
145 return node;
150 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
151 return node;
H A DParametricRangeQueryNodeProcessor.java69 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
71 if (node instanceof ParametricRangeQueryNode) {
72 ParametricRangeQueryNode parametricRangeNode = (ParametricRangeQueryNode) node;
149 return node;
154 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
156 return node;
H A DPhraseSlopQueryNodeProcessor.java31 * node tree. A {@link SlopQueryNode} is invalid if its child is neither a
43 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
45 if (node instanceof SlopQueryNode) {
46 SlopQueryNode phraseSlopNode = (SlopQueryNode) node;
55 return node;
60 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
62 return node;
H A DRemoveEmptyNonLeafQueryNodeProcessor.java32 * children. If after processing the entire tree the root node is not a leaf and
35 * This processor is used at the end of a pipeline to avoid invalid query node
70 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
72 return node;
77 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
79 return node;
H A DWildcardQueryNodeProcessor.java52 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException { argument
56 if (node instanceof FieldQueryNode || node instanceof FuzzyQueryNode) {
57 FieldQueryNode fqn = (FieldQueryNode) node;
66 return node;
82 return node;
125 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { argument
127 return node;

Completed in 23 milliseconds

12