OSID Logo
OSID Specifications
search package
Version 3.1.0
Interfaceosid.search.SearchSession
Implementsosid.OsidSession
Used Byosid.search.SearchManager
osid.search.SearchProxyManager
Description

This session provides methods to evaluate and execute search.

MethodgetEngineId
Description

Gets the Engine Id associated with this session.

Returnosid.id.Id the Engine Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetEngine
Description

Gets the Engine associated with this session.

Returnosid.search.Engine the engine
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSearch
Description

Tests if this user can evaluate search. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer these operations.

Returnboolean false if evaluation methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedEngineView
Description

Federates the view for methods in this session. A federated view will include searches in engines which are children of this engine in the engine hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedEngineView
Description

Isolates the view for methods in this session. An isolated view restricts searches to this engine only.

Compliancemandatory This method is must be implemented.
MethodgetQuery
Description

Gets the query interface.

Returnosid.search.Query the returned Query interface
Compliancemandatory This method must be implemented.
MethodgetSearch
Description

Gets the search interface.

Returnosid.search.Search the returned Search interface
Compliancemandatory This method must be implemented.
Methodsearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.search.Queryquery a rule Id
osid.search.Searchsearch input conditions
Returnosid.search.SearchResults result of the search
ErrorsNULL_ARGUMENT query or search is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED query or search not of this service
Compliancemandatory This method must be implemented.
MethodgetQueryFromInspector
Description

Gets a query interface from an inspector. The inspector is available from a SearchResults.

Parametersosid.search.QueryInspectorqueryInspector a query inspector
Returnosid.search.Query the query interface
ErrorsNULL_ARGUMENT queryInspector is null
UNSUPPORTED queryInspector is not of this service
Compliancemandatory This method must be implemented.