diff --git a/lucene/core/src/java/org/apache/lucene/search/Query.java b/lucene/core/src/java/org/apache/lucene/search/Query.java index 560df421e6e3..c872c076b76f 100644 --- a/lucene/core/src/java/org/apache/lucene/search/Query.java +++ b/lucene/core/src/java/org/apache/lucene/search/Query.java @@ -44,7 +44,7 @@ * * *
See also additional queries available in the Queries module + * href="{@docRoot}/../queries/overview-summary.html">Queries module. */ public abstract class Query { @@ -120,7 +120,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 */ @@ -131,8 +131,8 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException { * that {@link QueryCache} works properly. * *
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() @@ -155,7 +155,7 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException { * *
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();