Skip to content

Apache Lucene open-source search software

LUCENE-6143: Correct javadoc for surround query parser

Erik Hatcherc1f32c4b3c53
diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java
index 1c429d68022..c2103022d85 100644
--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java
+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java
@@ -36,7 +36,7 @@ import org.apache.lucene.queryparser.surround.query.SrndTruncQuery;
* c)</code> notation. </p>
* <p>The W and N operators express a positional relationship among their
- * operands. N is ordered, and W is unordered. The distance is 1 by
+ * operands. W is ordered, and N is unordered. The distance is 1 by
* default, meaning the operands are adjacent, or may be provided as a
* prefix from 2-99. So, for example, 3W(a, b) means that terms a and b
* must appear within three positions of each other, or in other words, up
diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
index 1b07ffd47f5..f1d13b7de1a 100644
--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
@@ -65,7 +65,7 @@ import org.apache.lucene.queryparser.surround.query.SrndTruncQuery;
* c)</code> notation. </p>
* <p>The W and N operators express a positional relationship among their
- * operands. N is ordered, and W is unordered. The distance is 1 by
+ * operands. W is ordered, and N is unordered. The distance is 1 by
* default, meaning the operands are adjacent, or may be provided as a
* prefix from 2-99. So, for example, 3W(a, b) means that terms a and b
* must appear within three positions of each other, or in other words, up