You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2008/07/06 14:04:43 UTC

svn commit: r674286 - /lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java

Author: yonik
Date: Sun Jul  6 05:04:43 2008
New Revision: 674286

URL: http://svn.apache.org/viewvc?rev=674286&view=rev
Log:
return this to allow method chaining for setTimeAllowed

Modified:
    lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java

Modified: lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java?rev=674286&r1=674285&r2=674286&view=diff
==============================================================================
--- lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java (original)
+++ lucene/solr/trunk/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java Sun Jul  6 05:04:43 2008
@@ -473,12 +473,13 @@
   * 
   *@param milliseconds the time in milliseconds allowed for this query
   */
-  public void setTimeAllowed(Integer milliseconds) {
+  public SolrQuery setTimeAllowed(Integer milliseconds) {
     if (milliseconds == null) {
       this.remove(CommonParams.TIME_ALLOWED);
     } else {
       this.set(CommonParams.TIME_ALLOWED, milliseconds);
     }
+    return this;
   }
   
   /**