fix #1590 fix index.scroll.search.timeout
This commit is contained in:
parent
1691d871c1
commit
1cb631adda
3 changed files with 8 additions and 9 deletions
|
@ -644,8 +644,7 @@ public class FessEsClient implements Client {
|
|||
SearchResponse response =
|
||||
client.prepareSearch(index).setTypes(type).setScroll(scrollForDelete).setSize(sizeForDelete)
|
||||
.setFetchSource(new String[] { fessConfig.getIndexFieldId() }, null).setQuery(queryBuilder)
|
||||
.setPreference(Constants.SEARCH_PREFERENCE_LOCAL).execute()
|
||||
.actionGet(fessConfig.getIndexScrollSearchTimeoutTimeout());
|
||||
.setPreference(Constants.SEARCH_PREFERENCE_LOCAL).execute().actionGet(fessConfig.getIndexScrollSearchTimeout());
|
||||
|
||||
int count = 0;
|
||||
String scrollId = response.getScrollId();
|
||||
|
|
|
@ -531,7 +531,7 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
|
|||
String INDEX_SEARCH_TIMEOUT = "index.search.timeout";
|
||||
|
||||
/** The key of the configuration. e.g. 3m */
|
||||
String INDEX_SCROLL_SEARCH_TIMEOUT_TIMEOUT = "index.scroll.search.timeout.timeout";
|
||||
String INDEX_SCROLL_SEARCH_TIMEOUT = "index.scroll.search.timeout";
|
||||
|
||||
/** The key of the configuration. e.g. 3m */
|
||||
String INDEX_INDEX_TIMEOUT = "index.index.timeout";
|
||||
|
@ -2873,11 +2873,11 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
|
|||
String getIndexSearchTimeout();
|
||||
|
||||
/**
|
||||
* Get the value for the key 'index.scroll.search.timeout.timeout'. <br>
|
||||
* Get the value for the key 'index.scroll.search.timeout'. <br>
|
||||
* The value is, e.g. 3m <br>
|
||||
* @return The value of found property. (NotNull: if not found, exception but basically no way)
|
||||
*/
|
||||
String getIndexScrollSearchTimeoutTimeout();
|
||||
String getIndexScrollSearchTimeout();
|
||||
|
||||
/**
|
||||
* Get the value for the key 'index.index.timeout'. <br>
|
||||
|
@ -6489,8 +6489,8 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
|
|||
return get(FessConfig.INDEX_SEARCH_TIMEOUT);
|
||||
}
|
||||
|
||||
public String getIndexScrollSearchTimeoutTimeout() {
|
||||
return get(FessConfig.INDEX_SCROLL_SEARCH_TIMEOUT_TIMEOUT);
|
||||
public String getIndexScrollSearchTimeout() {
|
||||
return get(FessConfig.INDEX_SCROLL_SEARCH_TIMEOUT);
|
||||
}
|
||||
|
||||
public String getIndexIndexTimeout() {
|
||||
|
@ -8156,7 +8156,7 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
|
|||
defaultMap.put(FessConfig.INDEX_ADMIN_DOUBLE_FIELDS, "");
|
||||
defaultMap.put(FessConfig.INDEX_ADMIN_REQUIRED_FIELDS, "url,title,role,boost");
|
||||
defaultMap.put(FessConfig.INDEX_SEARCH_TIMEOUT, "3m");
|
||||
defaultMap.put(FessConfig.INDEX_SCROLL_SEARCH_TIMEOUT_TIMEOUT, "3m");
|
||||
defaultMap.put(FessConfig.INDEX_SCROLL_SEARCH_TIMEOUT, "3m");
|
||||
defaultMap.put(FessConfig.INDEX_INDEX_TIMEOUT, "3m");
|
||||
defaultMap.put(FessConfig.INDEX_BULK_TIMEOUT, "3m");
|
||||
defaultMap.put(FessConfig.INDEX_DELETE_TIMEOUT, "3m");
|
||||
|
|
|
@ -271,7 +271,7 @@ index.admin.required.fields=url,title,role,boost
|
|||
|
||||
# timeout
|
||||
index.search.timeout=3m
|
||||
index.scroll.search.timeout.timeout=3m
|
||||
index.scroll.search.timeout=3m
|
||||
index.index.timeout=3m
|
||||
index.bulk.timeout=3m
|
||||
index.delete.timeout=3m
|
||||
|
|
Loading…
Add table
Reference in a new issue