fix #2631 add getEngineInfo
This commit is contained in:
parent
7495d7e38f
commit
082df3d6fb
1 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,7 @@ import org.codelibs.core.io.ResourceUtil;
|
|||
import org.codelibs.core.lang.StringUtil;
|
||||
import org.codelibs.core.lang.ThreadUtil;
|
||||
import org.codelibs.curl.CurlResponse;
|
||||
import org.codelibs.fesen.client.EngineInfo;
|
||||
import org.codelibs.fesen.client.HttpClient;
|
||||
import org.codelibs.fess.Constants;
|
||||
import org.codelibs.fess.entity.FacetInfo;
|
||||
|
@ -1411,6 +1412,13 @@ public class SearchEngineClient implements Client {
|
|||
this.clusterName = clusterName;
|
||||
}
|
||||
|
||||
public EngineInfo getEngineInfo() {
|
||||
if (client instanceof HttpClient httpClient) {
|
||||
return httpClient.getEngineInfo();
|
||||
}
|
||||
throw new SearchEngineClientException("client is not HttpClient.");
|
||||
}
|
||||
|
||||
//
|
||||
// Fesen Client
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue