Interface IssueSearchLimits
- All Known Implementing Classes:
BaseIssueSearchLimits,LuceneIssueSearchLimits,OpenSearchIssueSearchLimits
public interface IssueSearchLimits
Utility methods that allow you to get the limits that are imposed by JIRA configuration properties.
- Since:
- v4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default maximum for the number of issues returned by some functionalities in Jira, e.g. -
Method Summary
Modifier and TypeMethodDescriptionintGet the bucket limit for aggregations depending on which Search Platform is currently usedintReturns the maximum number of search results that this JIRA instance is configured to allow, by reading it from theintGet the maximum number of search results depending on which Search Platform is currently used For Open Search, this returns the max_result_window setting for the Issues index
-
Field Details
-
DEFAULT_MAX_RESULTS
static final int DEFAULT_MAX_RESULTSThe default maximum for the number of issues returned by some functionalities in Jira, e.g. Issue Navigator. Note that this is NOT the maximum number of search results that can be returned by the underlying search platform, seegetSearchPlatformMaxResultWindow().- See Also:
-
-
Method Details
-
getMaxResults
int getMaxResults()Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from thejpm.xml
file. If there is a problem reading the configured value, this method returns 1000. Note that this is NOT the maximum number of search results that can be returned by the underlying search platform, seegetSearchPlatformMaxResultWindow().- Returns:
- an int containing the maximum number of search results to return
-
getAggregationBucketLimit
int getAggregationBucketLimit()Get the bucket limit for aggregations depending on which Search Platform is currently used- Returns:
- aggregation buckets limit for currently used Search Platform
-
getSearchPlatformMaxResultWindow
int getSearchPlatformMaxResultWindow()Get the maximum number of search results depending on which Search Platform is currently used For Open Search, this returns the max_result_window setting for the Issues index- Returns:
- the maximum number of search results
-