Package com.atlassian.jira.search.issue
Class DocumentSearchRequest
java.lang.Object
com.atlassian.jira.search.issue.DocumentSearchRequest
Encapsulation of all parameters required to match index documents. Includes
JQL QueryApplicationUserOverrideSecurityQueryto further restrict results by adding with an additional queryCollection of fieldsto include in the result documentsAggregationsRequestto compute aggregated resultsTrackHitsoption to define how total hits count is calculated
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the aggregation request to compute aggregated results, ornullif no aggregation requested.builder()booleanReturns he fields to load in the result documents, ornullif all fields should be loaded.Returns an additional query to further restrict results, ornullif no additional query is required.inthashCode()jqlQuery()Returns the JQL query to match documents.booleanReturnstrueif the search should ignore security restrictions,falseotherwise.searcher()Returns the user on whose behalf the search is performed, ornullif the search is anonymous.toString()Returns the track hits option, which defines how total hits count is tracked.
-
Method Details
-
builder
-
searcher
Returns the user on whose behalf the search is performed, ornullif the search is anonymous. -
jqlQuery
Returns the JQL query to match documents. Must not benull. -
filterQuery
Returns an additional query to further restrict results, ornullif no additional query is required. -
fieldsToLoad
Returns he fields to load in the result documents, ornullif all fields should be loaded. An empty collection means no fields will be loaded. -
overrideSecurity
public boolean overrideSecurity()Returnstrueif the search should ignore security restrictions,falseotherwise. -
aggregations
Returns the aggregation request to compute aggregated results, ornullif no aggregation requested.- Since:
- 10.5
-
trackHits
Returns the track hits option, which defines how total hits count is tracked.Only applicable for
SearchPlatform.OPENSEARCH. If not specified, the default OpenSearch behavior is used which counts up to 10_000 results (equivalent toTrackHits.upTo(10_000)).For
SearchPlatform.LUCENEthe total hits count is always tracked (equivalent toTrackHits.all()).- Since:
- 11.0
-
toString
-
equals
-
hashCode
public int hashCode()
-