OsidSearchOrder specifies preferred ordering
of search results. An OsidSearchOrder is
available from an search session and supplied to an
OsidSearch interface.
OsidSearch os = session.getObjectSearch();
os.limitResultSet(1, 25);
OsidSearchOrder order = session.getObjectSearchOrder();
order.orderByDisplayName();
os.orderResults(order);
OsidQuery queru;
query = session.getObjectQuery();
query.addDescriptionMatch("*food*", wildcardStringMatchType, true);
ObjectSearchResults results = session.getObjectsBySearch(query, os);
ObjectList list = results.getObjectList();
|