Class OpenSearchConfig
java.lang.Object
com.atlassian.confluence.plugins.opensearch.OpenSearchConfig
- All Implemented Interfaces:
SearchPlatformConfig
,SearchInfo
,SearchInfo.OpenSearchInfo
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public class OpenSearchConfig
extends Object
implements SearchPlatformConfig, SearchInfo.OpenSearchInfo
Application config for configuring OpenSearch
- Since:
- 8.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.status.service.systeminfo.SearchInfo
SearchInfo.LuceneInfo, SearchInfo.OpenSearchInfo
-
Constructor Summary
ConstructorDescriptionOpenSearchConfig
(com.atlassian.config.ApplicationConfiguration applicationConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getIndexName
(Index index) final Integer
boolean
Indicate whether indices are shared between nodes in clustervoid
refresh()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.status.service.systeminfo.SearchInfo
getLuceneInfo
-
Constructor Details
-
OpenSearchConfig
public OpenSearchConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
-
-
Method Details
-
refresh
public void refresh() -
getHttpUrl
- Specified by:
getHttpUrl
in interfaceSearchInfo.OpenSearchInfo
- Returns:
- the HTTP URL of the OpenSearch server
-
getIndexName
-
getContentIndexName
-
getChangeIndexName
-
getCustomIndexPrefix
-
getJournalIndexName
-
getUsernamePassword
-
getAWSRegion
-
getConnectRequestTimeout
-
getConnectTimout
-
getSocketTimeout
-
getDfsQueryThenFetch
public boolean getDfsQueryThenFetch() -
getMaxSearchResults
-
getMaxConnectionTotal
-
getMaxConnectionPerRoute
-
getScanPageSize
-
getCustomDictionaryPath
-
getPointInTimeKeepAlive
-
getMaxHighlightMaxAnalyzedOffset
-
searchPlatform
- Specified by:
searchPlatform
in interfaceSearchInfo
- Specified by:
searchPlatform
in interfaceSearchPlatformConfig
- Returns:
- the search platform configured on this instance
-
getOpenSearchInfo
- Specified by:
getOpenSearchInfo
in interfaceSearchInfo
- Returns:
- the OpenSearch information if this instance is configured with OpenSearch, otherwise empty
-