Interface | osid.OsidSearch | ||
---|---|---|---|
Implements | osid.OsidCondition | ||
Description |
This interface is available from a search session.Example using the search interface to retrieve the first 25 results: OsidSearch os = session.getObjectSearch(); os.limitResultSet(1, 25); OsidQuery query; query = session.getObjectQuery(); query.addDescriptionMatch("*food*", wildcardStringMatchType, true); ObjectSearchResults results = session.getObjectsBySearch(query, os); ObjectList list = results.getObjectList(); | ||
Method | limitResultSet | ||
Description |
By default, searches return all matching results. This method restricts the number of results by setting the start and end of the result set, starting from 1. The starting and ending results can be used for paging results when a certain ordering is requested. The ending position must be greater than the starting position. | ||
Parameters | cardinal | start | the start of the result set |
cardinal | end | the end of the result set | |
Errors | INVALID_ARGUMENT | end is less than or equal to start | |
Compliance | mandatory | This method must be implemented. |