OSID Logo
OSID Specifications
osid package
Version 3.0.0
Release Candidate Preview
Interfaceosid.OsidSearchOrder
Implementsosid.Suppliable
Description

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();