Class ContentSearch
java.lang.Object
com.atlassian.confluence.search.v2.AbstractSearch
com.atlassian.confluence.search.v2.ContentSearch
- All Implemented Interfaces:
ISearch
Represents a search against Confluence content. This includes searching against the text/body of
content.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.search.v2.AbstractSearch
AbstractSearch.AbstractBuilder<SELF extends AbstractSearch.AbstractBuilder<SELF>>
-
Field Summary
Fields inherited from class com.atlassian.confluence.search.v2.AbstractSearch
generatesToken, indices, limit, query, sort, startOffset
-
Constructor Summary
ConstructorDescriptionContentSearch
(@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. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentSearch.Builder
builder()
Returns type of search e.g.Methods inherited from class com.atlassian.confluence.search.v2.AbstractSearch
equals, generatesToken, getIndices, getLimit, getQuery, getSearchIndexes, getSort, getStartOffset, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.search.v2.ISearch
getHighlight, isExplain, withIndices, withLimit, withQuery
-
Field Details
-
SITE_SEARCH
- See Also:
-
CONTENT_SEARCH
- See Also:
-
CQL_SEARCH
- See Also:
-
-
Constructor Details
-
ContentSearch
Deprecated, for removal: This API element is subject to removal in a future version.since 9.0. Usebuilder()
Constructs a search against Confluence content. The maximum number of results returned will be a system provided default.- Parameters:
query
- the non-null query to perform against Confluence contentsort
- how to order the results of thequery
- Since:
- 7.20
-
ContentSearch
@Deprecated(forRemoval=true) public 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. Usebuilder()
Constructs a search against Confluence content.- Parameters:
query
- the non-null query to perform against Confluence contentsort
- how to order the results of thequery
startOffset
- the zero-based offset of the first content result to returnlimit
- the maximum number content results to return- Since:
- 7.20
-
ContentSearch
@Deprecated(forRemoval=true) public 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. Usebuilder()
- Since:
- 8.7.0
-
-
Method Details
-
getSearchType
Description copied from interface:ISearch
Returns type of search e.g. SiteSearch, RecentUpdate, NetworkFeed, BlogUpdate, which can be used by search manager to switch between different implementations to support incremental roll out.- Returns:
- type of search
-
toBuilder
- Returns:
- a builder that's initialised with the values of the current search object
-
builder
-