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
ConstructorsConstructorDescriptionOpenSearchConfig(com.atlassian.config.ApplicationConfiguration applicationConfig) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIndexName(Index index) final IntegerbooleanbooleanIndicate whether indices are shared between nodes in clustervoidrefresh()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getHttpUrlin interfaceSearchInfo.OpenSearchInfo- Returns:
- the HTTP URL of the OpenSearch server
-
getIndexName
-
getContentIndexName
-
getChangeIndexName
-
getCustomIndexPrefix
-
getJournalIndexName
-
getUsernamePassword
-
getAWSRegion
-
getConnectRequestTimeout
-
getConnectTimout
-
getSocketTimeout
-
isCompressionEnabled
public boolean isCompressionEnabled() -
getDfsQueryThenFetch
public boolean getDfsQueryThenFetch() -
getMaxSearchResults
-
getMaxConnectionTotal
-
getMaxConnectionPerRoute
-
getScanPageSize
-
getCustomDictionaryPath
-
getPointInTimeKeepAlive
-
getMaxHighlightMaxAnalyzedOffset
-
searchPlatform
- Specified by:
searchPlatformin interfaceSearchInfo- Specified by:
searchPlatformin interfaceSearchPlatformConfig- Returns:
- the search platform configured on this instance
-
getOpenSearchInfo
- Specified by:
getOpenSearchInfoin interfaceSearchInfo- Returns:
- the OpenSearch information if this instance is configured with OpenSearch, otherwise empty
-