diff --git a/src/java/org/apache/lucene/search/BooleanClause.java b/src/java/org/apache/lucene/search/BooleanClause.java index 846725ff093..8632ce59783 100644 --- a/src/java/org/apache/lucene/search/BooleanClause.java +++ b/src/java/org/apache/lucene/search/BooleanClause.java @@ -63,7 +63,7 @@ public class BooleanClause implements java.io.Serializable { @deprecated use {@link #setOccur(BooleanClause.Occur)} instead */ public boolean prohibited = false; // TODO: decrease visibility for Lucene 2.0 - private Occur occur; + private Occur occur = Occur.SHOULD; /** Constructs a BooleanClause with query q, required * r and prohibited p.