Index: RangeQuery.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/RangeQuery.java,v
retrieving revision 1.4
diff -u -r1.4 RangeQuery.java
--- RangeQuery.java	17 Jul 2002 17:38:04 -0000	1.4
+++ RangeQuery.java	23 Oct 2002 21:26:21 -0000
@@ -68,11 +68,11 @@
     private boolean inclusive;
     private IndexReader reader;
     private BooleanQuery query;
-    
-    /** Constructs a query selecting all terms greater than 
+
+    /** Constructs a query selecting all terms greater than
      * <code>lowerTerm</code> but less than <code>upperTerm</code>.
      * There must be at least one term and either term may be null--
-     * in which case there is no bound on that side, but if there are 
+     * in which case there is no bound on that side, but if there are
      * two term, both terms <b>must</b> be for the same field.
      */
     public RangeQuery(Term lowerTerm, Term upperTerm, boolean inclusive)
@@ -89,36 +89,36 @@
         this.upperTerm = upperTerm;
         this.inclusive = inclusive;
     }
-    
+
     final void prepare(IndexReader reader)
     {
         this.query = null;
         this.reader = reader;
     }
-    
+
     final float sumOfSquaredWeights(Searcher searcher) throws IOException
     {
         return getQuery().sumOfSquaredWeights(searcher);
     }
-    
+
     void normalize(float norm)
     {
         try
         {
             getQuery().normalize(norm);
-        } 
+        }
         catch (IOException e)
         {
             throw new RuntimeException(e.toString());
         }
     }
-    
+
     Scorer scorer(IndexReader reader) throws IOException
     {
         return getQuery().scorer(reader);
     }
-    
-    private BooleanQuery getQuery() throws IOException
+
+    public BooleanQuery getQuery() throws IOException
     {
         if (query == null)
         {
@@ -151,7 +151,7 @@
                     Term term = enum.term();
                     if (term != null && term.field() == testField)
                     {
-                        if (!checkLower || term.text().compareTo(lowerText) > 0) 
+                        if (!checkLower || term.text().compareTo(lowerText) > 0)
                         {
                             checkLower = false;
                             if (upperTerm != null)
@@ -165,14 +165,14 @@
                             tq.setBoost(boost);               // set the boost
                             q.add(tq, false, false);		  // add to q
                         }
-                    } 
+                    }
                     else
                     {
                         break;
                     }
                 }
                 while (enum.next());
-            } 
+            }
             finally
             {
                 enum.close();
@@ -181,12 +181,12 @@
         }
         return query;
     }
-    
+
     private String getField()
     {
         return (lowerTerm != null ? lowerTerm.field() : upperTerm.field());
     }
-    
+
     /** Prints a user-readable version of this query. */
     public String toString(String field)
     {
