Skip to content

Commit a4434ca

Browse files
authored
javadocs: fix invalid refs in queryparsers #14086 (#14087)
1 parent cad76cc commit a4434ca

File tree

3 files changed

+81
-86
lines changed

3 files changed

+81
-86
lines changed

lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/package-info.java

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -15,83 +15,5 @@
1515
* limitations under the License.
1616
*/
1717

18-
/**
19-
* Flexible query parser is a modular, extensible framework for implementing Lucene query parsers.
20-
* In the flexible query parser model, query parsing takes three steps: syntax parsing, processing
21-
* (query semantics) and building (conversion to a Lucene {@link org.apache.lucene.search.Query}).
22-
*
23-
* <p>The flexible query parser module provides not just the framework but also the {@linkplain
24-
* org.apache.lucene.queryparser.flexible.standard.StandardQueryParser} - the default implementation
25-
* of a fully fledged query parser that supports most of the classic query parser's syntax but also
26-
* adds support for interval functions, min-should-match operator on Boolean groups and many hooks
27-
* for customization of how the parser behaves at runtime.
28-
*
29-
* <p>The flexible query parser is divided in two packages:
30-
*
31-
* <ul>
32-
* <li>{@link org.apache.lucene.queryparser.flexible.core}: contains the query parser API classes,
33-
* which should be extended by custom query parser implementations.
34-
* <li>{@link org.apache.lucene.queryparser.flexible.standard}: contains an example Lucene query
35-
* parser implementation built on top of the flexible query parser API.
36-
* </ul>
37-
*
38-
* <h2>Features</h2>
39-
*
40-
* <ol>
41-
* <li>full support for Boolean expressions, including groups
42-
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser syntax parsers}
43-
* - support for arbitrary syntax parsers, that can be converted into {@link
44-
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees.
45-
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor query
46-
* node processors} - optimize, validate, rewrite the {@link
47-
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees
48-
* <li>{@linkplain
49-
* org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline processor
50-
* pipelines} - select your favorite query processors and build a pipeline to implement the
51-
* features you need.
52-
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler query
53-
* configuration handlers}
54-
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder query
55-
* builders} - convert {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}
56-
* trees into Lucene {@link org.apache.lucene.search.Query} instances.
57-
* </ol>
58-
*
59-
* <h2>Design</h2>
60-
*
61-
* <p>The flexible query parser was designed to have a very generic architecture, so that it can be
62-
* easily used for different products with varying query syntax needs.
63-
*
64-
* <p>The query parser has three layers and its core is what we call the {@linkplain
65-
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query node tree}. It is a tree of
66-
* objects that represent the syntax of the original query, for example, for 'a AND b' the tree
67-
* could look like this:
68-
*
69-
* <pre>
70-
* AND
71-
* / \
72-
* A B
73-
* </pre>
74-
*
75-
* <p>The three flexible query parser layers are:
76-
*
77-
* <dl>
78-
* <dt>{@link org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser}
79-
* <dd>This layer is the text parsing layer which simply transforms the query text string into a
80-
* {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree. Every text parser
81-
* must implement the interface {@link
82-
* org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser}. The default
83-
* implementation is {@link
84-
* org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser}.
85-
* <dt>{@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor}
86-
* <dd>The query node processor does most of the work: it contains a chain of {@linkplain
87-
* org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor query node
88-
* processors}. Each processor can walk the tree and modify nodes or even the tree's
89-
* structure. This allows for query optimization before the node tree is converted to an
90-
* actual query.
91-
* <dt>{@link org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder}
92-
* <dd>The third layer is a configurable map of builders, which map {@linkplain
93-
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query nodes} to their adapters
94-
* that convert each node into a {@link org.apache.lucene.search.Query}.
95-
* </dl>
96-
*/
18+
/** */
9719
package org.apache.lucene.queryparser.flexible;

lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/package-info.java

Lines changed: 77 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,83 @@
2222
* operations. In the new query parser structure, the parsing was divided in 3 steps: parsing
2323
* (syntax), processing (semantic) and building.
2424
*
25-
* <p>The classes contained in the package org.apache.lucene.queryParser.standard are used to
26-
* reproduce the same behavior as the old query parser.
25+
* <p>Flexible query parser is a modular, extensible framework for implementing Lucene query
26+
* parsers. In the flexible query parser model, query parsing takes three steps: syntax parsing,
27+
* processing (query semantics) and building (conversion to a Lucene {@link
28+
* org.apache.lucene.search.Query}).
2729
*
28-
* <p>Check {@link org.apache.lucene.queryparser.flexible.standard.StandardQueryParser} to quick
29-
* start using the Lucene query parser.
30+
* <p>The flexible query parser module provides not just the framework but also the {@linkplain
31+
* org.apache.lucene.queryparser.flexible.standard.StandardQueryParser} - the default implementation
32+
* of a fully fledged query parser that supports most of the classic query parser's syntax but also
33+
* adds support for interval functions, min-should-match operator on Boolean groups and many hooks
34+
* for customization of how the parser behaves at runtime.
35+
*
36+
* <p>The flexible query parser is divided in two packages:
37+
*
38+
* <ul>
39+
* <li>{@link org.apache.lucene.queryparser.flexible.core}: contains the query parser API classes,
40+
* which should be extended by custom query parser implementations.
41+
* <li>{@link org.apache.lucene.queryparser.flexible.standard}: contains an example Lucene query
42+
* parser implementation built on top of the flexible query parser API.
43+
* </ul>
44+
*
45+
* <h2>Features</h2>
46+
*
47+
* <ol>
48+
* <li>full support for Boolean expressions, including groups
49+
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser syntax parsers}
50+
* - support for arbitrary syntax parsers, that can be converted into {@link
51+
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees.
52+
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor query
53+
* node processors} - optimize, validate, rewrite the {@link
54+
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees
55+
* <li>{@linkplain
56+
* org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline processor
57+
* pipelines} - select your favorite query processors and build a pipeline to implement the
58+
* features you need.
59+
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler query
60+
* configuration handlers}
61+
* <li>{@linkplain org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder query
62+
* builders} - convert {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}
63+
* trees into Lucene {@link org.apache.lucene.search.Query} instances.
64+
* </ol>
65+
*
66+
* <h2>Design</h2>
67+
*
68+
* <p>The flexible query parser was designed to have a very generic architecture, so that it can be
69+
* easily used for different products with varying query syntax needs.
70+
*
71+
* <p>The query parser has three layers and its core is what we call the {@linkplain
72+
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query node tree}. It is a tree of
73+
* objects that represent the syntax of the original query, for example, for 'a AND b' the tree
74+
* could look like this:
75+
*
76+
* <pre>
77+
* AND
78+
* / \
79+
* A B
80+
* </pre>
81+
*
82+
* <p>The three flexible query parser layers are:
83+
*
84+
* <dl>
85+
* <dt>{@link org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser}
86+
* <dd>This layer is the text parsing layer which simply transforms the query text string into a
87+
* {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree. Every text parser
88+
* must implement the interface {@link
89+
* org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser}. The default
90+
* implementation is {@link
91+
* org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser}.
92+
* <dt>{@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor}
93+
* <dd>The query node processor does most of the work: it contains a chain of {@linkplain
94+
* org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor query node
95+
* processors}. Each processor can walk the tree and modify nodes or even the tree's
96+
* structure. This allows for query optimization before the node tree is converted to an
97+
* actual query.
98+
* <dt>{@link org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder}
99+
* <dd>The third layer is a configurable map of builders, which map {@linkplain
100+
* org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query nodes} to their adapters
101+
* that convert each node into a {@link org.apache.lucene.search.Query}.
102+
* </dl>
30103
*/
31104
package org.apache.lucene.queryparser.flexible.standard;

lucene/queryparser/src/java/overview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ <h1>Apache Lucene QueryParsers.</h1>
2727
<p>
2828
This module provides a number of query parsers:
2929
<ul>
30-
<li>{@linkplain org.apache.lucene.queryparser.flexible flexible query parser}
30+
<li>{@linkplain org.apache.lucene.queryparser.flexible.standard flexible query parser}
3131
<li>{@linkplain org.apache.lucene.queryparser.classic classic query parser}
3232
<li>{@linkplain org.apache.lucene.queryparser.complexPhrase complex phrase query parser}
3333
<li>{@linkplain org.apache.lucene.queryparser.ext extendable query parser}
34-
<li>{@linkplain org.apache.lucene.queryparser.surround surround query parser (span queries)}
34+
<li>{@linkplain org.apache.lucene.queryparser.surround.parser surround query parser (span queries)}
3535
<li>{@linkplain org.apache.lucene.queryparser.xml query parser building Query objects from XML}
3636
</ul>
3737

3838
<p>
39-
If you're new to query parsers, the {@linkplain org.apache.lucene.queryparser.flexible flexible query parser}'s
39+
If you're new to query parsers, the {@linkplain org.apache.lucene.queryparser.flexible.standard flexible query parser}'s
4040
{@link org.apache.lucene.queryparser.flexible.standard.StandardQueryParser} is probably a good place to start.
4141

4242
</body>

0 commit comments

Comments
 (0)