public interface OsidSearch extends OsidCondition
OsidSearch specifies search options used to perform OSID
searches. An OsidSearch is available from an
OsidSession and defines methods to govern the overall search of
terms supplied in one or more OsidQuery interfaces.
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();
| Modifier and Type | Method and Description |
|---|---|
void |
limitResultSet(long start,
long end)
By default, searches return all matching results.
|
getRecordTypes, hasRecordTypevoid limitResultSet(long start,
long end)
start - the start of the result setend - the end of the result setInvalidArgumentException - end is less
than or equal to start mandatory - This method must be implemented.