Interface | osid.OsidSearchResults | ||
---|---|---|---|
Implements | osid.OsidResult | ||
Description |
This interface provides a means to capture results of a search. An example of searching withina result set: OsidSearch os = session.getObjectSearch(); OsidQuery query; query = session.getObjectQuery(); query.matchDescription("*food*", wildcardStringMatchType, true); ObjectSearchResults results = session.getObjectBySearch(query, os); // get information about search ObjectList objects = results.getObjects(); int size = results.getResultSize(); SearchPerformanceRecord record = (SearchPerformanceRecord) results.getObjectSearchResultsRecord(performanceRecodType); Duration duration = record.getTimeForSearch(); | ||
Method | getResultSize | ||
Description |
Returns the size of a result set from a search query.
This number serves as an estimate to provide feedback for
refining search queries and may not be the number of
elements available through an | ||
Return | cardinal | the result size | |
Compliance | mandatory | This method must be implemented. |