com.atlassian.confluence.search.v2
Interface ISearch

All Known Subinterfaces:
SearchWithToken
All Known Implementing Classes:
AbstractSearch, ChangesSearch, ContentSearch, DefaultSearch, DefaultSearchWithToken, Search

public interface ISearch

A representation of a search to be performed. Searches are immutable, and consist of these parts:

  1. The Query to be performed
  2. The Sort order to apply to the results
  3. The ResultFilter to allow filtering of results after the search has completed. (this is deprecated)
  4. The SearchFilter to filter search results during search. Prefer this over using a ResultFilter. Search filters are generally more efficient than result filters.


Method Summary
 int getLimit()
           
 SearchQuery getQuery()
           
 ResultFilter getResultFilter()
          Deprecated. since 5.5. Please consider implemeting SearchFilter. If you must perform post search filtering, you can filter SearchResults returned by the methods on SearchManager.
 SearchFilter getSearchFilter()
           
 SearchSort getSort()
           
 int getStartOffset()
           
 

Method Detail

getQuery

SearchQuery getQuery()
Returns:
the query component of the search

getSort

SearchSort getSort()
Returns:
the sort component of the search

getSearchFilter

SearchFilter getSearchFilter()
Returns:
the search filter component of the search

getResultFilter

@Deprecated
ResultFilter getResultFilter()
Deprecated. since 5.5. Please consider implemeting SearchFilter. If you must perform post search filtering, you can filter SearchResults returned by the methods on SearchManager.

Returns the result filter component of the search.

Note: if a non-null ResultFilter is returned here, it will override getStartOffset() and getLimit()

Returns:
the result filter component of the search

getStartOffset

int getStartOffset()
Returns:
the start offset (0 based).

getLimit

int getLimit()
Returns:
the maximum page size


Copyright © 2003-2014 Atlassian. All Rights Reserved.