Class SearchQuery
java.lang.Object
com.atlassian.jira.lucene.internal.issue.search.SearchQuery
Deprecated, for removal: This API element is subject to removal in a future version.
Encapsulation of all parameters required to match Lucene documents. Includes
QueryApplicationUserOverrideSecurityQueryto further restrict results by anding with an additional Lucene query
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchQuerycreate(Query query, ApplicationUser searcher) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.org.apache.lucene.search.QueryDeprecated, for removal: This API element is subject to removal in a future version.getQuery()Deprecated, for removal: This API element is subject to removal in a future version.getUser()Deprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.luceneQuery(org.apache.lucene.search.Query luceneQuery) Deprecated, for removal: This API element is subject to removal in a future version.Additional Lucene query that will be anded withqueryto further restrict search results.overrideSecurity(boolean overrideSecurity) Deprecated, for removal: This API element is subject to removal in a future version.Decides if search results should be restricted to those visible touser, or unrestricted.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
query- JQL query to define search resultssearcher-ApplicationUserthat will be used in search. This has two purposes:- security - when
overrideSecurityis not set, search results will be restricted to those the user is permitted to see - search context - JQL functions will be given this user in
QueryCreationContext
- security - when
- Returns:
- SearchQuery that can be further adjusted with
overrideSecurity(boolean)andluceneQuery(org.apache.lucene.search.Query).
-
overrideSecurity
Deprecated, for removal: This API element is subject to removal in a future version.Decides if search results should be restricted to those visible touser, or unrestricted. This will be available to JQL functions inQueryCreationContext.- Parameters:
overrideSecurity- true if security restrictions should be ignored
-
luceneQuery
Deprecated, for removal: This API element is subject to removal in a future version.Additional Lucene query that will be anded withqueryto further restrict search results.- Parameters:
luceneQuery-
-
getQuery
Deprecated, for removal: This API element is subject to removal in a future version. -
getLuceneQuery
public org.apache.lucene.search.Query getLuceneQuery()Deprecated, for removal: This API element is subject to removal in a future version. -
getUser
Deprecated, for removal: This API element is subject to removal in a future version. -
isOverrideSecurity
public boolean isOverrideSecurity()Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
-
DocumentSearchRequestinstead.