Interface TextSearch
- All Superinterfaces:
Extensible, OsidCondition, OsidSearch, Suppliable
The search interface for governing text searches.
-
Method Summary
Modifier and TypeMethodDescriptiongetTextSearchRecord(Type textSearchRecordType) Gets the text search record corresponding to the given text search recordType.voidorderTextResults(TextSearchOrder textSearchOrder) Specify an ordering to the search results.voidsearchAmongTexts(IdList textIds) Execute this search among the given list of texts.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidSearch
limitResultSetModifier and TypeMethodDescriptionvoidlimitResultSet(long start, long end) By default, searches return all matching results.
-
Method Details
-
searchAmongTexts
Execute this search among the given list of texts.- Parameters:
textIds- list of texts- Throws:
NullArgumentException-textIdsisnull- Compliance:
mandatory- This method must be implemented.
-
orderTextResults
Specify an ordering to the search results.- Parameters:
textSearchOrder- text search order- Throws:
NullArgumentException-textSearchOrderisnullUnsupportedException-textSearchOrderis not of this service- Compliance:
mandatory- This method must be implemented.
-
getTextSearchRecord
Gets the text search record corresponding to the given text search recordType. This method is used to retrieve an object implementing the requested record.- Parameters:
textSearchRecordType- a text search record type- Returns:
- the text search record
- Throws:
NullArgumentException-textSearchRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(textSearchRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-