Class OpenSearchClient
java.lang.Object
com.atlassian.jira.webtests.ztests.opensearch.OpenSearchClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is the opensearch.index.issues.name set by configure-jira-to-use-opensearch.xml -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchClient(JIRAEnvironmentData environmentData) OpenSearchClient(JIRAEnvironmentData environmentData, String openSearchUrl) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeindexIssue(long issueId) Deindexes an issue from the OpenSearch index by issue ID.voiddeindexIssue(String issueId) Deindexes an issue document from the OpenSearch index by issue ID string.intRetrieves the current OpenSearch max terms count limit.voidsetFieldLimits(int limit) Configures OpenSearch field limits to handle large numbers of fields.voidsetMaxResultWindow(int maxResultWindow) Configures OpenSearch max result window limit.voidsetMaxTermsCount(int maxTermsCount) Configures OpenSearch max terms count limit.
-
Field Details
-
ISSUE_INDEX_NAME
This is the opensearch.index.issues.name set by configure-jira-to-use-opensearch.xml- See Also:
-
-
Constructor Details
-
OpenSearchClient
-
OpenSearchClient
-
-
Method Details
-
setMaxResultWindow
public void setMaxResultWindow(int maxResultWindow) Configures OpenSearch max result window limit.- Parameters:
maxResultWindow- the maximum result window value to set
-
setMaxTermsCount
public void setMaxTermsCount(int maxTermsCount) Configures OpenSearch max terms count limit.- Parameters:
maxTermsCount- the maximum terms count value to set
-
getMaxTermsCount
public int getMaxTermsCount()Retrieves the current OpenSearch max terms count limit.- Returns:
- the current maximum terms count value, or -1 if not configured or an error occurs
-
setFieldLimits
public void setFieldLimits(int limit) Configures OpenSearch field limits to handle large numbers of fields.- Parameters:
limit- the maximum number of fields allowed in the index.
-
deindexIssue
public void deindexIssue(long issueId) Deindexes an issue from the OpenSearch index by issue ID.- Parameters:
issueId- the ID of the issue to deindex
-
deindexIssue
Deindexes an issue document from the OpenSearch index by issue ID string.- Parameters:
issueId- the ID of the issue to deindex as a string
-