Rollup.shared.search(_:limit:offset:) returns: a page of results in order with what the index holds about each, how many there were, the query as search read it, and how long it took.
How many results the search found, before
limit and offset. More than results.count when results were cut.Seconds for its parts, by name, such as
locationResolution, filtering, embedding and text.SearchPlan
The whole plan: the date, capture, location and place filters search applied, with its policies and counts.
SearchResult
The text search matches against: sign text, text read from the preview, or a screenshot’s text.
Kinds of sensitive content the photo, video or screenshot holds, decided on the iPhone. Empty when none. See Sensitive photos.
The event its visit was at, when
events is on and one was found: its type (concert, festival, sports, theater, comedy, conference or other), title, venue, start and end, confidence (0 to 1), genres: the listing’s music genres (indie, hip-hop-rap), headliners’ first, and lineup: everyone on the bill, headliners first. Both are empty for games. A benefit or multi-artist show keeps its own title when the listing has one (“FireAid Benefit Concert”).Every activity its visit shows, strongest first, on Rollup’s activity taxonomy. Empty when none fits.
Deprecated: use
activities. Its visit’s activity, decided on the device from the visit’s own venue, time and photos, whether events is on or not: Brunch, Hike, Nightclub, Museum/Art, Sports/Rec League, Game Night, Film Screening, Ski and the like. Nil when none fits. A visit’s event decides it where there is one: a concert is Live Music/Concert, a festival Festival, a conference Networking and a game or tournament Sports Game.The PhotoKit local identifiers of other photos of the same shot. Search shows them once, as this result. Empty when there are none.
Sensitive photos
sensitivity can hold personal_data (an ID card, passport or driver’s license), health (a prescription or a medical record), nudity (it can also mark swimwear or nude art) and, for screenshots, financial_information (payment details) and authentication (passwords and codes). It is an estimate and can be wrong.
query, facets, indexing batches, people() and photos(of:) leave out every asset with one of these kinds. search still returns them, flagged, so your app can drop them before anything leaves the iPhone.
Activity
What it came from:
lookup (a matched event), rules, venue, photos, cuisine, travel or fallback.Context
Location
Label
Place
Screenshot
Kinds of sensitive content the screenshot holds. The result’s own
sensitivity has the same kinds.