Author: yonik
Date: Tue Jun 17 06:27:53 2008
New Revision: 668656

URL: http://svn.apache.org/viewvc?rev=668656&view=rev
Log:
SOLR-601: make QParser.parse public

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java?rev=668656&r1=668655&r2=668656&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/QParser.java Tue Jun 17 
06:27:53 2008
@@ -40,8 +40,10 @@
     this.req = req;
   }
 
-  /** create and return the <code>Query</code> object represented by 
<code>qstr</code> */
-  protected abstract Query parse() throws ParseException;
+  /** Create and return the <code>Query</code> object represented by 
<code>qstr</code>
+   * @see #getQuery()
+   **/
+  public abstract Query parse() throws ParseException;
 
   public SolrParams getLocalParams() {
     return localParams;
@@ -75,6 +77,11 @@
     this.qstr = s;
   }
 
+  /** Returns the resulting query from this QParser, calling parse() only the
+   * first time and caching the Query result.
+   * @return
+   * @throws ParseException
+   */
   public Query getQuery() throws ParseException {
     if (query==null) {
       query=parse();


Reply via email to