com.atlassian.confluence.search.v2
Class Search

java.lang.Object
  extended by com.atlassian.confluence.search.v2.Search

public class Search
extends java.lang.Object

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

  1. The query to be performed
  2. The sort order to apply to the results
  3. A resultFilter to allow efficient results post-processing from within the search operation.


Constructor Summary
Search(SearchQuery query, SearchSort sort, ResultFilter resultFilter)
          Construct a new Search.
 
Method Summary
 SearchQuery getQuery()
          Gets the query component of the search
 ResultFilter getResultFilter()
          Gets the results filter component of the search
 SearchSort getSort()
          Gets the sort component of the search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Search

public Search(SearchQuery query,
              SearchSort sort,
              ResultFilter resultFilter)
Construct a new Search.

Parameters:
query - the query to perform
sort - how to order the results
resultFilter - any results post-processor
Method Detail

getQuery

public SearchQuery getQuery()
Gets the query component of the search

Returns:
the search query

getSort

public SearchSort getSort()
Gets the sort component of the search

Returns:
the search sort

getResultFilter

public ResultFilter getResultFilter()
Gets the results filter component of the search

Returns:
the results filter


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.