|
@@ -654,7 +654,7 @@ public abstract class EsAbstractConditionBean implements ConditionBean {
|
|
if (searchType != null) {
|
|
if (searchType != null) {
|
|
builder.setSearchType(searchType);
|
|
builder.setSearchType(searchType);
|
|
}
|
|
}
|
|
- if (timeoutInMillis == -1) {
|
|
|
|
|
|
+ if (timeoutInMillis != -1) {
|
|
builder.setTimeout(new TimeValue(timeoutInMillis));
|
|
builder.setTimeout(new TimeValue(timeoutInMillis));
|
|
}
|
|
}
|
|
if (version != null) {
|
|
if (version != null) {
|