lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r416951 - /lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java
Date Sat, 24 Jun 2006 20:42:37 GMT
Author: yonik
Date: Sat Jun 24 13:42:37 2006
New Revision: 416951

URL: http://svn.apache.org/viewvc?rev=416951&view=rev
Log:
BooleanClause javadoc update: LUCENE-615

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java?rev=416951&r1=416950&r2=416951&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/BooleanClause.java Sat Jun 24 13:42:37
2006
@@ -21,7 +21,7 @@
 /** A clause in a BooleanQuery. */
 public class BooleanClause implements java.io.Serializable {
   
-  /** Specifies how terms may occur in matching documents. */
+  /** Specifies how clauses are to occur in matching documents. */
   public static final class Occur extends Parameter implements java.io.Serializable {
     
     private Occur(String name) {
@@ -35,24 +35,24 @@
       return "";
     }
 
-    /** Use this operator for terms that <i>must</i> appear in the matching documents.
*/
+    /** Use this operator for clauses that <i>must</i> appear in the matching
documents. */
     public static final Occur MUST = new Occur("MUST");
-    /** Use this operator for terms that <i>should</i> appear in the 
+    /** Use this operator for clauses that <i>should</i> appear in the 
      * matching documents. For a BooleanQuery with two <code>SHOULD</code> 
-     * subqueries, at least one of the queries must appear in the matching documents. */
+     * subqueries, at least one of the clauses must appear in the matching documents. */
     public static final Occur SHOULD = new Occur("SHOULD");
-    /** Use this operator for terms that <i>must not</i> appear in the matching
documents.
+    /** Use this operator for clauses that <i>must not</i> appear in the matching
documents.
      * Note that it is not possible to search for queries that only consist
-     * of a <code>MUST_NOT</code> query. */
+     * of a <code>MUST_NOT</code> clause. */
     public static final Occur MUST_NOT = new Occur("MUST_NOT");
     
   }
 
   /** The query whose matching documents are combined by the boolean query.
    */
-  private Query query;    // TODO: decrease visibility for Lucene 2.0
+  private Query query;
 
-  private Occur occur = Occur.SHOULD;
+  private Occur occur;
 
 
   /** Constructs a BooleanClause.



Mime
View raw message