Skip to content

Apache Lucene open-source search software

- Fixed the typo in the setOperator argument name which was causing unit tests to fail. Peter spotted it, thanks Peter.

Otis Gospodneticd06a16f63060
diff --git a/src/java/org/apache/lucene/queryParser/QueryParser.jj b/src/java/org/apache/lucene/queryParser/QueryParser.jj
index 123169d15d1..63bc9f9dcff 100644
--- a/src/java/org/apache/lucene/queryParser/QueryParser.jj
+++ b/src/java/org/apache/lucene/queryParser/QueryParser.jj
@@ -173,7 +173,7 @@ public class QueryParser {
* In <code>DEFAULT_OPERATOR_AND</code> terms are considered to be in conjuction: the
* above mentioned query is parsed as <code>capital AND of AND Hungary</code>
*/
- public void setOperator(int operaror) {
+ public void setOperator(int operator) {
this.operator = operator;
}