From d2705e8e8ad9908e209c827061d08c768c4b5cbd Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Fri, 27 Aug 2004 21:54:58 +0000 Subject: [PATCH] Occur must default to SHOULD (TestWildcard breaks otherwise) git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150462 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/BooleanClause.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.