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

This session provides methods for searching Engines. The search query is constructed using the EngineQuery. The engine record Type also specifies the record for the engine query.

getEnginesByQuery() is the basic search method and returns a list of Engine elements. A more advanced search may be performed with getEnginesBySearch(). It accepts an EngineSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getEnginesBySearch() returns an EngineSearchResults that can be used to access the resulting EngineList or be used to perform a search within the result set through EngineSearch.

Engines may have a query record indicated by their respective record types. The query record is accessed via the EngineQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetEngineSearch
Description

Gets an engine search.

Returnosid.search.EngineSearch the engine search
Compliancemandatory This method must be implemented.
MethodgetEngineSearchOrder
Description

Gets an engine search order. The EngineSearchOrder is supplied to an EngineSearch to specify the ordering of results.

Returnosid.search.EngineSearchOrder the engine search order
Compliancemandatory This method must be implemented.
MethodgetEnginesBySearch
Description

Gets the search results matching the given search.

Parametersosid.search.EngineQueryengineQuery the engine query
osid.search.EngineSearchengineSearch the engine search
Returnosid.search.EngineSearchResults the search results
ErrorsNULL_ARGUMENT engineQuery or engineSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED engineQuery or engineSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetEngineQueryFromInspector
Description

Gets an engine query from an inspector. The inspector is available from an EngineSearchResults.

Parametersosid.search.EngineQueryInspectorengineQueryInspector a query inspector
Returnosid.search.EngineQuery the engine query
ErrorsNULL_ARGUMENT engineQueryInspector is null
UNSUPPORTED engineQueryInspector is not of this service
Compliancemandatory This method must be implemented.