Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

return this to allow method chaining for setTimeAllowed

Yonik Seeley7990b2399a58
diff --git a/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java b/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java
index aa9ccac0b1b..c3e4ba97522 100644
--- a/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java
+++ b/client/java/solrj/src/org/apache/solr/client/solrj/SolrQuery.java
@@ -473,12 +473,13 @@ public class SolrQuery extends ModifiableSolrParams
*
*@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;
}
/**