Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR] Update javadoc in Query class #12233

Merged
merged 2 commits into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lucene/core/src/java/org/apache/lucene/search/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* </ul>
*
* <p>See also additional queries available in the <a
* href="{@docRoot}/../queries/overview-summary.html">Queries module</a>
* href="{@docRoot}/../queries/overview-summary.html">Queries module</a>.
*/
public abstract class Query {

Expand Down Expand Up @@ -86,7 +86,7 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
}

/**
* Recurse through the query tree, visiting any child queries
* Recurse through the query tree, visiting any child queries.
*
* @param visitor a QueryVisitor to be called by each query in the tree
*/
Expand All @@ -97,8 +97,8 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
* that {@link QueryCache} works properly.
*
* <p>Typically a query will be equal to another only if it's an instance of the same class and
* its document-filtering properties are identical that other instance. Utility methods are
* provided for certain repetitive code.
* its document-filtering properties are identical to those of the other instance. Utility methods
* are provided for certain repetitive code.
*
* @see #sameClassAs(Object)
* @see #classHash()
Expand All @@ -121,7 +121,7 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
*
* <p>When this method is used in an implementation of {@link #equals(Object)}, consider using
* {@link #classHash()} in the implementation of {@link #hashCode} to differentiate different
* class
* class.
*/
protected final boolean sameClassAs(Object other) {
return other != null && getClass() == other.getClass();
Expand Down