Class ContentSearch

java.lang.Object
com.atlassian.confluence.search.v2.AbstractSearch
com.atlassian.confluence.search.v2.ContentSearch
All Implemented Interfaces:
ISearch

public class ContentSearch extends AbstractSearch
Represents a search against Confluence content. This includes searching against the text/body of content.
  • Field Details

  • Constructor Details

    • ContentSearch

      @Deprecated(forRemoval=true) public ContentSearch(@NonNull SearchQuery query, SearchSort sort)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.0. Use builder()
      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 content
      sort - how to order the results of the query
      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. Use builder()
      Constructs a search against Confluence content.
      Parameters:
      query - the non-null query to perform against Confluence content
      sort - how to order the results of the query
      startOffset - the zero-based offset of the first content result to return
      limit - 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. Use builder()
      Since:
      8.7.0
  • Method Details

    • getSearchType

      public String 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

      public ContentSearch.Builder toBuilder()
      Returns:
      a builder that's initialised with the values of the current search object
    • builder

      public static ContentSearch.Builder builder()