| Interface | osid.lexicon.TextSearchSession | ||
|---|---|---|---|
| Implements | osid.lexicon.TextQuerySession | ||
| Used By | osid.lexicon.LexiconManager | ||
osid.lexicon.LexiconProxyManager | |||
| Description |
This session provides methods for searching among
getTextsByQuery() is the basic search method and
returns a list of Texts . A more advanced search
may be performed with getTextsBySearch() . It
accepts a TextSearch in addition to the query for
the purpose of specifying additional options affecting the
entire search, such as ordering.
getTextsBySearch() returns a
TextSearchResults that can be used to access the
resulting TextList or be used to perform a search
within the result set through TextSearch .
This session defines views that offer differing behaviors for searching.
Texts may have a record indicated by their respective
record types. The query record is accessed via the
| ||
| Method | getTextSearch | ||
| Description |
Gets a text search. | ||
| Return | osid.lexicon.TextSearch | the text search | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTextSearchOrder | ||
| Description |
Gets a text search order. The
| ||
| Return | osid.lexicon.TextSearchOrder | the text search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTextsBySearch | ||
| Description |
Gets the search results matching the given search query using the given search. | ||
| Parameters | osid.lexicon.TextQuery | textQuery | the text query |
osid.lexicon.TextSearch | textSearch | the text search | |
| Return | osid.lexicon.TextSearchResults | the text search results | |
| Errors | NULL_ARGUMENT | textQuery or textSearch is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | textQuery or textSearch is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTextQueryFromInspector | ||
| Description |
Gets a text query from an inspector. The inspector is
available from a | ||
| Parameters | osid.lexicon.TextQueryInspector | textQueryInspector | a text query inspector |
| Return | osid.lexicon.TextQuery | the text query | |
| Errors | NULL_ARGUMENT | textQueryInspector is null | |
| UNSUPPORTED | textQueryInspector is not of this service | ||
| Compliance | mandatory | This method must be implemented. | |