public interface OsidSearchResults extends OsidResult
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();
Modifier and Type | Method and Description |
---|---|
long |
getResultSize()
Returns the size of a result set from a search query.
|
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
long getResultSize()
OsidList.
mandatory
- This method must be implemented.