Interface SearchQuery
- All Superinterfaces:
Expandable<SearchQuery>
- All Known Implementing Classes:
AbstractParameterListQuery
,AbstractUserQuery
,ActiveUserInfoQuery
,ActiveUserQuery
,AllQuery
,ArchivedSpacesQuery
,AttachmentTypeQuery
,BooleanQuery
,BrowseUsersPermissionQuery
,ConstantScoreQuery
,ContainingContentTypeQuery
,ContentCategoryQuery
,ContentPermissionsQuery
,ContentStatusQuery
,ContentTypeQuery
,ContributorQuery
,CreatorQuery
,CustomContentTypeQuery
,DateRangeQuery
,DoubleRangeQuery
,EnabledCustomContentTypesQuery
,FieldExistsQuery
,FileExtensionQuery
,FunctionScoreQuery
,HasPersonalSpaceQuery
,InheritedLabelQuery
,InSpaceQuery
,IntegerRangeQuery
,LabelQuery
,LabelsQuery
,LastModifierUserQuery
,LongRangeQuery
,MacroStorageVersionQuery
,MacroUsageQuery
,MatchNoDocsQuery
,MultiTextFieldQuery
,NonViewableCustomContentTypeQuery
,NotAnonymousUserQuery
,PhraseQuery
,PrefixQuery
,QueryStringQuery
,SiteSearchPermissionsQuery
,SiteTextSearchQuery
,SpaceCategoryQuery
,SpacePermissionQuery
,SpanNearQuery
,TermQuery
,TermRangeQuery
,TermSetQuery
,TextFieldQuery
,TextQuery
,TextSearchQuery
,UserInfoQuery
,UserTextQuery
,WildcardTextFieldQuery
A query to be performed against the search index. Implementations should be immutable.
Queries consist of a key (a unique string, usually a plugin module complete key, to identify the type of query being performed) and a list of parameters which may either be strings, or other instances of SearchQuery.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault SearchQuery
expand()
Expands this query into a composite query (that composes other queries).default float
getBoost()
Return boost factor of this query.getKey()
default List
List of parameters asString
s orSearchQuery
s.default Stream<SubClause<SearchQuery>>
Returns a stream of nested queries.
-
Field Details
-
DEFAULT_BOOST
static final float DEFAULT_BOOST- See Also:
-
-
Method Details
-
getKey
String getKey()- Returns:
- the plugin key
-
getParameters
List of parameters asString
s orSearchQuery
s.- Returns:
String
s orSearchQuery
s.
-
expand
Expands this query into a composite query (that composes other queries). By overriding this method, one can specify a new query that is composition of the behaviour of the composed queries.- Specified by:
expand
in interfaceExpandable<SearchQuery>
- Returns:
- a query
-
getBoost
default float getBoost()Return boost factor of this query. It will take effect when the query is used in combination with others e.g. inBooleanQuery
.- Returns:
- boost factor
-
getSubClauses
Returns a stream of nested queries.- Since:
- 7.14
-