Class ChangesSearch
- java.lang.Object
-
- com.atlassian.confluence.search.v2.AbstractSearch
-
- com.atlassian.confluence.search.v2.ChangesSearch
-
- All Implemented Interfaces:
ISearch
public class ChangesSearch extends AbstractSearch
Represents a search against change information. Change information is generated each time a person creates or edits content. This information can be queried to allow clients to track content updates.Clients are also provided with filtering capabilities similar to the
ContentSearch. For example, you can track all updates by one or more users by using theLastModifierUserQuery.A parameterised version of this search is provided in
PredefinedSearchBuilder.buildRecentUpdateSearch(RecentUpdateQueryParameters, int, int)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHANGES_SEARCHstatic StringNETWORK_FEED_SEARCHstatic StringRECENT_UPDATES_SEARCH-
Fields inherited from class com.atlassian.confluence.search.v2.AbstractSearch
indexes, limit, query, sort, startOffset
-
-
Constructor Summary
Constructors Constructor Description ChangesSearch(@NonNull SearchQuery query, SearchSort sort)Constructs a search against change information.ChangesSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)Constructs a search against change information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSearchType()Returns type of search e.g.-
Methods inherited from class com.atlassian.confluence.search.v2.AbstractSearch
equals, 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
-
-
-
-
Field Detail
-
RECENT_UPDATES_SEARCH
public static final String RECENT_UPDATES_SEARCH
- See Also:
- Constant Field Values
-
NETWORK_FEED_SEARCH
public static final String NETWORK_FEED_SEARCH
- See Also:
- Constant Field Values
-
CHANGES_SEARCH
public static final String CHANGES_SEARCH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChangesSearch
public ChangesSearch(@NonNull SearchQuery query, SearchSort sort)
Constructs a search against change information. The maximum number of results returned will be a system provided default.- Parameters:
query- the non-null query to perform against change informationsort- how to order the results of thequery- Since:
- 7.20
-
ChangesSearch
public ChangesSearch(@NonNull SearchQuery query, SearchSort sort, int startOffset, int limit)
Constructs a search against change information.- Parameters:
query- the non-null query to perform against change informationsort- how to order the results of thequerystartOffset- the zero-based offset of the first content result to returnlimit- the maximum number content results to return- Since:
- 7.20
-
-
Method Detail
-
getSearchType
public String getSearchType()
Description copied from interface:ISearchReturns 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
-
-