mirror of https://github.com/apache/lucene.git
return this to allow method chaining for setTimeAllowed
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@674286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5f5bd5320b
commit
7990b2399a
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue