package

com.atlassian.confluence.search.v2

Provides an extensible, flexible search API. This API supercedes, and should be used for in preference to SmartListManager, SearchQueryBean, SearchScope, or accessing Lucene directly.

Package Specification

To external client code, this package provides a single service: SearchManager.

Related Documentation

Interfaces

BaseSearchResult A simpler super interface of SearchResult. 
ISearch A representation of a search to be performed. 
QueryFactory Used by the query deserializer to map between key/parameters and SearchQuery objects. 
ResultFilter Represents some method for filtering search results before they are returned from the search subsystem. 
SearchFilter A filter to be performed against the search index during search time (not post results). 
SearchManager Facade for the v2 search API. 
SearchQuery A query to be performed against the search index. 
SearchResult An individual search result. 
SearchResults The results of a search. 
SearchSort Represents some method for sorting search results, and the order in which to search them. 
SpaceCategories  

Classes

AbstractChainableSearchFilter A super class that defines standard AND and OR chaining behaviour. 
AbstractSearch  
BogusResultFilter  
BogusSearchQuery  
BogusSearchSort  
ChangesSearch Represents a search against change information. 
ContentSearch Represents a search against Confluence content. 
DefaultQueryFactory A default implementation of QueryFactory that maps query type keys to plugin module complete keys. 
QuerySerializer

Note: Query serialization and deserialization does not work for all possible permutations of query parts at the moment. 

Search This class is deprecated. since 3.0. Use ContentSearch instead. 
SearchFieldNames A helper class that contains the known set of core available Strings. 
SearchResultLink Represents a HTML link constructed from data contained in a search result (and ultimately the search index). 
TestDefaultQueryFactory  
TestDefaultQueryFactory.BogusSearchQueryWithoutNoargConstructor  
TestDefaultQueryFactory.BogusSearchQueryWithoutValidConstructor  
TestDefaultQueryFactory.MySearchQueryModuleDescriptor  
TestQuerySerializer  
TestQuerySuggester  

Enums

BooleanOperator  
SearchManager.EntityVersionPolicy Determines how search results will be converted into entities by convertToEntities(SearchResults, EntityVersionPolicy) and searchEntities(ISearch, EntityVersionPolicy)
SearchResultType

Represents a confluence search result type. 

SearchSort.Order Enum defining the types of ordering supported. 

Exceptions

FieldNotRequestedException Exception thrown when an attempt is made to access a search field when it was not included in the collection of requested fields. 
InvalidQueryException Thrown when a smart list query could not be converted to an index query. 
InvalidSearchException Superclass for exceptions thrown due to errors converting from a Search to the native search type.