Class LuceneIssueSearchLimits
java.lang.Object
com.atlassian.jira.web.action.issue.BaseIssueSearchLimits
com.atlassian.jira.web.action.issue.util.LuceneIssueSearchLimits
- All Implemented Interfaces:
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 intDefault aggregation buckets limit for Lucenestatic final intMaximum number of search results for LuceneFields inherited from class com.atlassian.jira.web.action.issue.BaseIssueSearchLimits
DEFAULT_SEARCH_PLATFORM_MAX_RESULTSFields inherited from interface com.atlassian.jira.web.action.issue.IssueSearchLimits
DEFAULT_MAX_RESULTS -
Constructor Summary
ConstructorsConstructorDescriptionLuceneIssueSearchLimits(ApplicationProperties applicationProperties, FeatureManager featureManager) Creates a new SearchLimits instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum number of aggregation buckets that are set to be unbounded for the Lucene search platform.intGet the maximum number of search results depending on which Search Platform is currently usedMethods inherited from class com.atlassian.jira.web.action.issue.BaseIssueSearchLimits
getMaxResults
-
Field Details
-
DEFAULT_LUCENE_BUCKET_LIMIT
public static final int DEFAULT_LUCENE_BUCKET_LIMITDefault aggregation buckets limit for Lucene- See Also:
-
DEFAULT_LUCENE_MAX_RESULTS
public static final int DEFAULT_LUCENE_MAX_RESULTSMaximum number of search results for Lucene- See Also:
-
-
Constructor Details
-
LuceneIssueSearchLimits
public LuceneIssueSearchLimits(ApplicationProperties applicationProperties, FeatureManager featureManager) Creates a new SearchLimits instance.- Parameters:
applicationProperties- an ApplicationProperties
-
-
Method Details
-
getAggregationBucketLimit
public int getAggregationBucketLimit()Returns the maximum number of aggregation buckets that are set to be unbounded for the Lucene search platform. To preserve consistency with other 'unbounded' limits, we treat Integer.MAX_VALUE as equivalent to unbounded.- Returns:
- the maximum number of aggregation buckets that Lucene can return in a single search request
-
getSearchPlatformMaxResultWindow
public int getSearchPlatformMaxResultWindow()Get the maximum number of search results depending on which Search Platform is currently used- Specified by:
getSearchPlatformMaxResultWindowin interfaceIssueSearchLimits- Overrides:
getSearchPlatformMaxResultWindowin classBaseIssueSearchLimits- Returns:
- the maximum number of search results
-