Uses of Interface
com.atlassian.confluence.search.v2.SearchQuery
Packages that use SearchQuery
Package
Description
Provides a Lucene-backed implementation of the
SearchManager.Provides an extensible, flexible search API.
This package provides search engine agnostic primitives required to construct
FunctionScoreQuery.-
Uses of SearchQuery in com.atlassian.confluence.event.events.search
Methods in com.atlassian.confluence.event.events.search that return SearchQueryConstructors in com.atlassian.confluence.event.events.search with parameters of type SearchQueryModifierConstructorDescriptionSearchPerformedEvent(Object source, SearchQuery search, com.atlassian.user.User user, int numberOfResults) -
Uses of SearchQuery in com.atlassian.confluence.impl.plugin.descriptor.search
Methods in com.atlassian.confluence.impl.plugin.descriptor.search that return SearchQueryModifier and TypeMethodDescription -
Uses of SearchQuery in com.atlassian.confluence.impl.search
Methods in com.atlassian.confluence.impl.search with parameters of type SearchQueryModifier and TypeMethodDescriptionCompositeIndexManager.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) -
Uses of SearchQuery in com.atlassian.confluence.impl.search.v2
Classes in com.atlassian.confluence.impl.search.v2 that implement SearchQueryModifier and TypeClassDescriptionclassThis is used in conjunction with theSiteSearchPermissionsQueryMapper, which map it to aFilteredQueryclassDeprecated.Methods in com.atlassian.confluence.impl.search.v2 that return SearchQueryModifier and TypeMethodDescriptionDefaultSiteSearchPermissionsQueryFactory.create(SearchContext searchContext) DefaultSpacePermissionQueryFactory.create(@Nullable ConfluenceUser user) SiteSearchPermissionsFilteredQueryFactory.create(SearchContext searchContext) SpacePermissionFilteredQueryFactory.create(@Nullable ConfluenceUser user) Deprecated.Methods in com.atlassian.confluence.impl.search.v2 that return types with arguments of type SearchQueryModifier and TypeMethodDescriptionDefaultContentPermissionsQueryFactory.create(@Nullable ConfluenceUser user) -
Uses of SearchQuery in com.atlassian.confluence.impl.search.v2.mappers
Classes in com.atlassian.confluence.impl.search.v2.mappers with type parameters of type SearchQueryMethods in com.atlassian.confluence.impl.search.v2.mappers with parameters of type SearchQueryModifier and TypeMethodDescriptionorg.apache.lucene.search.QueryMatchNoDocsQueryMapper.convertToLuceneQuery(SearchQuery searchQuery) Constructor parameters in com.atlassian.confluence.impl.search.v2.mappers with type arguments of type SearchQueryModifierConstructorDescriptionFunctionScoreQueryMapper(LuceneQueryMapper<SearchQuery> searchMapper) -
Uses of SearchQuery in com.atlassian.confluence.impl.search.v2.score
Methods in com.atlassian.confluence.impl.search.v2.score that return SearchQueryModifier and TypeMethodDescriptionDefaultFunctionScoreQueryFactory.applyFunctionScoring(SearchQuery query) Methods in com.atlassian.confluence.impl.search.v2.score with parameters of type SearchQueryModifier and TypeMethodDescriptionDefaultFunctionScoreQueryFactory.applyFunctionScoring(SearchQuery query) -
Uses of SearchQuery in com.atlassian.confluence.index
Methods in com.atlassian.confluence.index that return SearchQueryConstructors in com.atlassian.confluence.index with parameters of type SearchQueryModifierConstructorDescriptionReIndexSpec(SearchQuery deleteQuery, int concurrencyLevel, List<HibernateHandle> handles, String name) ReIndexSpec(SearchQuery deleteQuery, int concurrencyLevel, List<HibernateHandle> handles, String name, boolean shouldOptimize) ReIndexSpec(SearchQuery deleteQuery, int concurrencyLevel, List<HibernateHandle> handles, String name, boolean shouldOptimize, boolean resetJournal) -
Uses of SearchQuery in com.atlassian.confluence.internal.index
Methods in com.atlassian.confluence.internal.index with parameters of type SearchQueryModifier and TypeMethodDescriptionvoidAbstractReindexer.reIndex(EnumSet<ReIndexOption> maybeOptions, @NonNull SearchQuery searchQuery, Progress progress) voidReindexer.reIndex(EnumSet<ReIndexOption> options, @NonNull SearchQuery searchQuery, Progress progress) Triggers a system wide re-index all entities loaded from searchQuery. -
Uses of SearchQuery in com.atlassian.confluence.internal.index.lucene
Methods in com.atlassian.confluence.internal.index.lucene with parameters of type SearchQueryModifier and TypeMethodDescriptionFullReindexManager.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) Triggers a system-wide re-index where entities are loaded using providedsearchQuery.LuceneFullReindexManager.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) longLuceneSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<ScannedDocument> consumer, float defaultSCore) longLuceneSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) -
Uses of SearchQuery in com.atlassian.confluence.internal.search
Methods in com.atlassian.confluence.internal.search that return SearchQueryModifier and TypeMethodDescription@NonNull SearchQueryDecoratedSearchManager.DecoratedSearch.getQuery()Methods in com.atlassian.confluence.internal.search with parameters of type SearchQueryModifier and TypeMethodDescriptionlongDecoratedSearchManager.scan(EnumSet<SearchIndex> indexes, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) longDecoratedSearchManager.scan(List<Index> indices, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) -
Uses of SearchQuery in com.atlassian.confluence.internal.search.v2
Methods in com.atlassian.confluence.internal.search.v2 that return SearchQueryModifier and TypeMethodDescriptionMethods in com.atlassian.confluence.internal.search.v2 that return types with arguments of type SearchQueryModifier and TypeMethodDescriptionSiteTextSearchSpanQueryBuilder.getQuery(String field, String queryString, org.apache.lucene.analysis.Analyzer analyzer, float boost) Generates span queries (wrapped in a boolean query if needed) for the given queryString.Methods in com.atlassian.confluence.internal.search.v2 with parameters of type SearchQueryModifier and TypeMethodDescriptionlongProfiledSearchManager.scan(EnumSet<SearchIndex> indexes, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) longProfiledSearchManager.scan(List<Index> indices, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) -
Uses of SearchQuery in com.atlassian.confluence.internal.search.v2.lucene
Classes in com.atlassian.confluence.internal.search.v2.lucene with type parameters of type SearchQueryModifier and TypeInterfaceDescriptioninterfaceLuceneQueryMapper<T extends SearchQuery>A lucene query mapper represents an object that is able to map from a ConfluenceSearchQueryto a LuceneQuery.Methods in com.atlassian.confluence.internal.search.v2.lucene with parameters of type SearchQueryModifier and TypeMethodDescriptionorg.apache.lucene.search.QueryDelegatingLuceneSearchMapper.convertToLuceneQuery(SearchQuery searchQuery) longLuceneSearchManager.scan(EnumSet<SearchIndex> indexes, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) ExecuteConsumer.accept(T)for each search result.longLuceneSearchManager.scan(List<Index> indices, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) -
Uses of SearchQuery in com.atlassian.confluence.macro.query
Methods in com.atlassian.confluence.macro.query that return SearchQueryMethods in com.atlassian.confluence.macro.query with parameters of type SearchQueryModifier and TypeMethodDescriptionvoidBooleanQueryFactory.addMust(SearchQuery query) Adds the specifiedSearchQueryto the "must match" criteria.voidBooleanQueryFactory.addMustNot(SearchQuery query) Adds the specifiedSearchQueryto the "must not match" criteria.voidBooleanQueryFactory.addShould(SearchQuery query) Adds the specifiedSearchQueryto the "should match" criteria.Method parameters in com.atlassian.confluence.macro.query with type arguments of type SearchQueryModifier and TypeMethodDescriptionvoidBooleanQueryFactory.addMust(Collection<? extends SearchQuery> queries) Adds the specifiedCollection<SearchQuery>to the "must match" criteria.voidBooleanQueryFactory.addMustNot(Collection<? extends SearchQuery> queries) Adds the specifiedCollection<SearchQuery>to the "must not match" criteria.voidBooleanQueryFactory.addShould(Collection<? extends SearchQuery> queries) Adds the specifiedCollection<SearchQuery>to the "should match" criteria.Constructor parameters in com.atlassian.confluence.macro.query with type arguments of type SearchQueryModifierConstructorDescriptionBooleanQueryFactory(Set<SearchQuery> must, Set<SearchQuery> should, Set<SearchQuery> mustNot) Constructs aBooleanQueryFactorywith the specifiedSearchQueriesas initial values. -
Uses of SearchQuery in com.atlassian.confluence.plugins.contentproperty.search.fields
Methods in com.atlassian.confluence.plugins.contentproperty.search.fields that return SearchQueryModifier and TypeMethodDescriptionprotected SearchQueryNumericContentPropertyAliasFieldHandler.createQuery(Double from, Double to, boolean includesFrom, boolean includesTo) -
Uses of SearchQuery in com.atlassian.confluence.plugins.contentproperty.search.query
Methods in com.atlassian.confluence.plugins.contentproperty.search.query that return SearchQueryModifier and TypeMethodDescriptionContentPropertySearchQueryFactory.buildNumberRangeQuery(ContentPropertySchemaField schemaField, Range<Double> range) ContentPropertySearchQueryFactory.buildStringEqualityQuery(ContentPropertySchemaField schemaField, String... value) Build a generic string equality query.ContentPropertySearchQueryFactory.buildTextQuery(ContentPropertySchemaField schemaField, String rawQuery) -
Uses of SearchQuery in com.atlassian.confluence.plugins.opensearch
Methods in com.atlassian.confluence.plugins.opensearch with parameters of type SearchQueryModifier and TypeMethodDescriptionorg.opensearch.client.opensearch._types.query_dsl.QueryDelegatingQueryMapper.mapQueryToOpenSearch(SearchQuery query) longDefaultOpenSearchSearchManager.scan(EnumSet<SearchIndex> indexes, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) longDefaultOpenSearchSearchManager.scan(List<Index> indices, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) longOpenSearchSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<ScannedDocument> consumer, float defaultScore) longOpenSearchSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) -
Uses of SearchQuery in com.atlassian.confluence.plugins.opensearch.bulk
Methods in com.atlassian.confluence.plugins.opensearch.bulk with parameters of type SearchQuery -
Uses of SearchQuery in com.atlassian.confluence.plugins.opensearch.mappers.query
Classes in com.atlassian.confluence.plugins.opensearch.mappers.query with type parameters of type SearchQueryModifier and TypeInterfaceDescriptioninterfaceOpenSearchQueryMapper<T extends SearchQuery>A mapper that maps a ConfluenceSearchQueryto an OpenSearchQuery.classOpenSearchRangeQueryMapper<Q extends SearchQuery>Maps v2 range queries to OpenSearch RangeQuery.Methods in com.atlassian.confluence.plugins.opensearch.mappers.query with parameters of type SearchQueryModifier and TypeMethodDescriptionorg.opensearch.client.opensearch._types.query_dsl.QueryOpenSearchSiteSearchPermissionQueryMapper.mapQueryToOpenSearch(SearchQuery query) org.opensearch.client.opensearch._types.query_dsl.QueryOpenSearchSpacePermissionQueryMapper.mapQueryToOpenSearch(SearchQuery query) -
Uses of SearchQuery in com.atlassian.confluence.rss
Methods in com.atlassian.confluence.rss that return SearchQuery -
Uses of SearchQuery in com.atlassian.confluence.search
Fields in com.atlassian.confluence.search declared as SearchQueryModifier and TypeFieldDescriptionstatic final SearchQueryReIndexUtils.ATTACHMENT_ONLY_QUERYstatic final SearchQueryReIndexUtils.CONTENT_ONLY_QUERYstatic final SearchQueryReIndexUtils.USER_ONLY_QUERYFields in com.atlassian.confluence.search with type parameters of type SearchQueryModifier and TypeFieldDescriptionstatic final Function<String, SearchQuery> ReIndexUtils.ATTACHMENT_ONLY_IN_SPACE_QUERYstatic final Function<String, SearchQuery> ReIndexUtils.CONTENT_ONLY_IN_SPACE_QUERYMethods in com.atlassian.confluence.search that return SearchQueryModifier and TypeMethodDescriptionAttachmentOnlyReIndexSupport.getDeleteQuery()AttachmentOnlyReIndexSupport.getDeleteQuery(Optional<String> spaceKey) ContentOnlyReIndexSupport.getDeleteQuery()ContentOnlyReIndexSupport.getDeleteQuery(Optional<String> spaceKey) ReIndexOption.getDeleteQuery()Deprecated.ReIndexOption.getDeleteQuery(Optional<String> spaceKey) Deprecated.ReIndexSupport.getDeleteQuery()Get the search query for deleting documents during reindexing.ReIndexSupport.getDeleteQuery(Optional<String> spaceKey) Get the search query for deleting documents during reindexing within a specific space.UserOnlyReIndexSupport.getDeleteQuery()UserOnlyReIndexSupport.getDeleteQuery(Optional<String> spaceKey) Methods in com.atlassian.confluence.search with parameters of type SearchQueryModifier and TypeMethodDescriptionIndexManager.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) Triggers a system wide re-index.Constructor parameters in com.atlassian.confluence.search with type arguments of type SearchQueryModifierConstructorDescriptionReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) ReIndexTask(Reindexer reIndexer, SearchableDao searchableDao, List<String> spaceKeys, EnumSet<ReIndexOption> options, Optional<SearchQuery> searchQuery, int jobID) -
Uses of SearchQuery in com.atlassian.confluence.search.contentnames
Methods in com.atlassian.confluence.search.contentnames that return SearchQuery -
Uses of SearchQuery in com.atlassian.confluence.search.plugin
Methods in com.atlassian.confluence.search.plugin that return SearchQuery -
Uses of SearchQuery in com.atlassian.confluence.search.service
Methods in com.atlassian.confluence.search.service that return SearchQueryMethods in com.atlassian.confluence.search.service with parameters of type SearchQueryModifier and TypeMethodDescriptionvoidSearchQueryParameters.setSearchQueryFilter(SearchQuery searchQueryFilter) -
Uses of SearchQuery in com.atlassian.confluence.search.v2
Fields in com.atlassian.confluence.search.v2 declared as SearchQueryModifier and TypeFieldDescriptionprotected SearchQueryAbstractSearch.AbstractBuilder.queryprotected final SearchQueryAbstractSearch.queryMethods in com.atlassian.confluence.search.v2 that return SearchQueryModifier and TypeMethodDescriptiondefault SearchQuerySiteSearchPermissionsQueryFactory.create()SiteSearchPermissionsQueryFactory.create(SearchContext searchContext) SpacePermissionQueryFactory.create(@Nullable ConfluenceUser user) default SearchQuerySearchQuery.expand()Expands this query into a composite query (that composes other queries).@NonNull SearchQueryAbstractSearch.getQuery()Gets the query component of the searchDefaultHighlightParams.getQuery()@NonNull SearchQueryDefaultSearchWithToken.getQuery()default SearchQueryHightlightParams.getQuery()@NonNull SearchQueryISearch.getQuery()Expand query string fromSiteTextSearchQueryinto a primitiveSearchQuery.Generate a SearchQuery without parametersGenerate a SearchQuery with parameters.QuerySerializer.stringToQuery(String s) Convert a string-form query back into object form.Methods in com.atlassian.confluence.search.v2 that return types with arguments of type SearchQueryModifier and TypeMethodDescriptionContentPermissionsQueryFactory.create(@Nullable ConfluenceUser user) default Stream<SubClause<SearchQuery>> SearchQuery.getSubClauses()Returns a stream of nested queries.Methods in com.atlassian.confluence.search.v2 with parameters of type SearchQueryModifier and TypeMethodDescriptionvoidSearchIndexWriter.delete(SearchQuery searchQuery) AbstractSearch.AbstractBuilder.query(SearchQuery query) DecoratorSearchBuilder.query(SearchQuery query) ISearch.Builder.query(SearchQuery query) static StringQuerySerializer.queryToString(SearchQuery query) Convert a SearchQuery into a string form that can be transported over the wire, saved, and so onlongDelegatingSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<ScannedDocument> consumer, float defaultScore) longDelegatingSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) longSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<ScannedDocument> consumer, float defaultScore) Scans the index for documents that match the provided searchQuery.longSearchIndexAccessor.scan(SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) Scans the index for documents that match the provided searchQuery.longSearchManager.scan(EnumSet<SearchIndex> indexes, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) ExecuteConsumer.accept(T)for each search result.longSearchManager.scan(List<Index> indices, SearchQuery searchQuery, Set<String> requestedFields, Consumer<Map<String, String[]>> consumer) ExecuteConsumer.accept(T)for each search result.default ISearchISearch.withQuery(SearchQuery query) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.Constructors in com.atlassian.confluence.search.v2 with parameters of type SearchQueryModifierConstructorDescriptionprotectedAbstractSearch(EnumSet<SearchIndex> indexes, @NonNull SearchQuery query, SearchSort sort) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.protectedAbstractSearch(List<Index> indexes, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ChangesSearch(@NonNull SearchQuery query, SearchSort sort) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ChangesSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ChangesSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ContentSearch(@NonNull SearchQuery query, SearchSort sort) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ContentSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.ContentSearch(List<Index> indices, @NonNull SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.Constructs a parameter object used for highlightingDefaultHighlightParams(String encoder, SearchQuery query) Constructs a parameter object used for highlightingDefaultSearch(List<Index> indices, SearchQuery query, SearchSort sort) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0.DefaultSearch(List<Index> indices, SearchQuery query, SearchSort sort, int startOffset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.since 9.0. -
Uses of SearchQuery in com.atlassian.confluence.search.v2.query
Classes in com.atlassian.confluence.search.v2.query that implement SearchQueryModifier and TypeClassDescriptionclassAbstract superclass for queries holding a list of parameters of a single type.classclassQuery which filters out documents representing users that are no longer active.classQuery which filters out documents representing users that are no longer active.classRepresent an entire set of documents.classFilters archived spaces (and their contents) out of search results.classSearch for attachments of a particular type or types.classA boolean query that allows and/or and not combinations of sub queries.classclassv2 primitive queryclassSearch for an entity contained within content of a particular type.classSearchQuery that finds content where content type is from the list of specified categoriesclassclassSearchQuery which matches content by their content status.classSearch for content of a particular type.classCreates a query to find content a user has contributed to (any edit or create is considered a contribution)classQuery for the original creator of content.classThis V2 query is used for filtering custom contents based on their types.classQuery for search results that have been modified within the specified range of dates.classv2 primitive queryclassA V2SearchQueryimplementation which only finds custom content which have been enabled, or non-custom content.classA V2SearchQueryimplementation which finds documents which contain a specific field.classSearch for content with a particular file extension.classv2 primitive query that modifies the wrapped query score of a retrieved document by combining it according toFunctionScoreQuery.BoostModewith an value provided byScoreFunction.classSearch for content belonging to a user who has a personal space.classQuery for matching a singleLabelthat was inherited from a piece of parent content, for example, searching for comments attached to pages with a certain labelclassSearch using a set of space keys for content that occurs within some set of spaces.classv2 primitive queryclassQuery for matching a singleLabel.classAllows querying by multiple labels.classSearchQuery to find the content where theSearchFieldMappings.LAST_MODIFIERfield has to match one of the users in the provided last modifiers listclassv2 primitive queryclassclassA search query that finds usages of a macro in a content entity object by the macro name.classclassRepresents a query against multiple fields.classA V2SearchQueryimplementation which only finds viewable custom content types or non-custom content.classSearchQuery that filters out anonymous users.classA query which matches by phrases.classv2 primitive queryclassv2 primitive queryclassRelocation from confluence-search plugin.classSearch for content within spaces of a particular category (or categories).classv2 primitive queryclassv2 primitive queryclassv2 primitive queryclassThis query represents the underlying TermsQuery (built into Confluence at the moment), which doesn't calculate score and acts merely as a filter.classRepresents a raw query from the user that may be parsed.classA multi text field query that searches across a range of text fields for the query stringclassThis query represents a text search on a Lucene field.classSearchQuery for user info.classSearches for text within common user-related text fields: full name, email address and usernameclassMethods in com.atlassian.confluence.search.v2.query with type parameters of type SearchQueryModifier and TypeMethodDescriptionstatic <T extends SearchQuery>
booleanSearchQueryUtils.containsQuery(SearchQuery searchQuery, Class<T> searchQueryClass) Traverses the provided search query tree and checks whether it contains any queries of the specified classMethods in com.atlassian.confluence.search.v2.query that return SearchQueryModifier and TypeMethodDescriptionstatic SearchQueryBooleanQuery.andQuery(SearchQuery... queries) Build an AND query from one or more subqueries.static SearchQuerySearchQueryUtils.appendIfQueryNotPresent(@Nullable SearchQuery searchQuery, SearchQuery searchQueryToCheck, SearchQuery searchQueryToAppend) Append a search query as a top level AND query, if thesearchQueryToCheckdoes not exist in the current search query tree.BooleanQuery.Builder.build()static SearchQueryBooleanQuery.composeAndQuery(Set<? extends SearchQuery> subqueries) Return a query that "ANDs" together a list of queries.static SearchQueryBooleanQuery.composeOrQuery(Set<? extends SearchQuery> subqueries) Return a query that "ORs" together a list of queries.ActiveUserInfoQuery.expand()ActiveUserQuery.expand()ArchivedSpacesQuery.expand()AttachmentTypeQuery.expand()BooleanQuery.expand()BrowseUsersPermissionQuery.expand()ConstantScoreQuery.expand()This primitive but is similar toBooleanQuery, which in some sense primitive but also need to implement expand method, because the wrapped query need to be expanded.ContainingContentTypeQuery.expand()ContentCategoryQuery.expand()ContentStatusQuery.expand()ContentTypeQuery.expand()ContributorQuery.expand()CreatorQuery.expand()CustomContentTypeQuery.expand()DateRangeQuery.expand()EnabledCustomContentTypesQuery.expand()FileExtensionQuery.expand()FunctionScoreQuery.expand()This primitive but is similar toBooleanQuery, which in some sense primitive but also need to implement expand method, because the wrapped query need to be expanded.HasPersonalSpaceQuery.expand()InheritedLabelQuery.expand()InSpaceQuery.expand()LabelQuery.expand()LabelsQuery.expand()LastModifierUserQuery.expand()MacroStorageVersionQuery.expand()MacroUsageQuery.expand()MultiTextFieldQuery.expand()NonViewableCustomContentTypeQuery.expand()Expands into aSearchQuerywhich will not find custom content which is not viewable.NotAnonymousUserQuery.expand()SpaceCategoryQuery.expand()TextSearchQuery.expand()UserInfoQuery.expand()UserTextQuery.expand()WildcardTextFieldQuery.expand()static SearchQueryContentStatusQuery.getDefaultContentStatusQuery()The default SearchQuery will only match content which has the current status.ConstantScoreQuery.getWrappedQuery()FunctionScoreQuery.getWrappedQuery()static SearchQueryBooleanQuery.orQuery(SearchQuery... queries) Create a query that is the OR of the provided sub-queriesstatic SearchQueryContainingContentTypeQuery.searchForTypesWithinContainerType(ContentTypeEnum containerType, Set<ContentTypeEnum> contentTypes) Helper method for the common "Find me all attachments attached to pages" query - which would be ContainingContentTypeQuery.searchForTypesWithinContainerType(ContentTypeEnum.ATTACHMENT, ContentTypeEnum.PAGE)Methods in com.atlassian.confluence.search.v2.query that return types with arguments of type SearchQueryModifier and TypeMethodDescriptionBooleanQuery.Builder.addFilter(SearchQuery filter) BooleanQuery.Builder.addFilters(Set<SearchQuery> filters) static BiFunction<String, String, SearchQuery> TermQuery.builder()static BiFunction<String, Set<String>, SearchQuery> TermSetQuery.builder()BooleanQuery.Builder.disableCoord(boolean disableCoord) Specifies whether similarity-coord is disabledBooleanQuery.getFilters()BooleanQuery.getMustNotQueries()BooleanQuery.getMustQueries()BooleanQuery.getShouldQueries()BooleanQuery.getSubClauses()ConstantScoreQuery.getSubClauses()FunctionScoreQuery.getSubClauses()Methods in com.atlassian.confluence.search.v2.query with parameters of type SearchQueryModifier and TypeMethodDescriptionBooleanQuery.Builder.addFilter(SearchQuery filter) static SearchQueryBooleanQuery.andQuery(SearchQuery... queries) Build an AND query from one or more subqueries.static SearchQuerySearchQueryUtils.appendIfQueryNotPresent(@Nullable SearchQuery searchQuery, SearchQuery searchQueryToCheck, SearchQuery searchQueryToAppend) Append a search query as a top level AND query, if thesearchQueryToCheckdoes not exist in the current search query tree.static <T extends SearchQuery>
booleanSearchQueryUtils.containsQuery(SearchQuery searchQuery, Class<T> searchQueryClass) Traverses the provided search query tree and checks whether it contains any queries of the specified classstatic SearchQueryBooleanQuery.orQuery(SearchQuery... queries) Create a query that is the OR of the provided sub-queriesMethod parameters in com.atlassian.confluence.search.v2.query with type arguments of type SearchQueryModifier and TypeMethodDescriptionBooleanQuery.Builder.addFilters(Set<SearchQuery> filters) static SearchQueryBooleanQuery.composeAndQuery(Set<? extends SearchQuery> subqueries) Return a query that "ANDs" together a list of queries.static SearchQueryBooleanQuery.composeOrQuery(Set<? extends SearchQuery> subqueries) Return a query that "ORs" together a list of queries.Constructors in com.atlassian.confluence.search.v2.query with parameters of type SearchQueryModifierConstructorDescriptionConstantScoreQuery(SearchQuery wrappedQuery) ConstantScoreQuery(SearchQuery query, float boost) FunctionScoreQuery(SearchQuery wrappedQuery, ScoreFunction function, FunctionScoreQuery.BoostMode boostMode) Constructor parameters in com.atlassian.confluence.search.v2.query with type arguments of type SearchQueryModifierConstructorDescriptionBooleanQuery(Collection<? extends SearchQuery> must, Collection<? extends SearchQuery> should, Collection<? extends SearchQuery> mustNot) Construct a new BooleanQuery encapsulating the supplied sub queries with a default boost value.BooleanQuery(Collection<? extends SearchQuery> must, Collection<? extends SearchQuery> should, Collection<? extends SearchQuery> mustNot, float boost) Construct a new BooleanQuery encapsulating the supplied sub queries without any filters.BooleanQuery(Collection<? extends SearchQuery> must, Collection<? extends SearchQuery> should, Collection<? extends SearchQuery> mustNot, Collection<? extends SearchQuery> filters) Construct a new BooleanQuery encapsulating the supplied sub queries with the default boost.BooleanQuery(Collection<? extends SearchQuery> must, Collection<? extends SearchQuery> should, Collection<? extends SearchQuery> mustNot, Collection<? extends SearchQuery> filters, float boost) Construct a new BooleanQuery encapsulating the supplied sub queries.BooleanQuery(Collection<? extends SearchQuery> must, Collection<? extends SearchQuery> should, Collection<? extends SearchQuery> mustNot, Collection<? extends SearchQuery> filters, float boost, boolean disableCoord) Construct a new BooleanQuery encapsulating the supplied sub queries. -
Uses of SearchQuery in com.atlassian.confluence.search.v2.score
Methods in com.atlassian.confluence.search.v2.score that return SearchQueryModifier and TypeMethodDescriptionFunctionScoreQueryFactory.applyFunctionScoring(SearchQuery searchQuery) Apply function scoring on Confluence documents.FilteredScoreFunction.getFilter()Methods in com.atlassian.confluence.search.v2.score with parameters of type SearchQueryModifier and TypeMethodDescriptionFunctionScoreQueryFactory.applyFunctionScoring(SearchQuery searchQuery) Apply function scoring on Confluence documents.Constructors in com.atlassian.confluence.search.v2.score with parameters of type SearchQueryModifierConstructorDescriptionFilteredScoreFunction(SearchQuery filter, ComposableScoreFunction delegate)
SpacePermissionQueryFactory.create(ConfluenceUser)