Skip to main content

Search photos

Search runs on the device and needs no network. It matches the text read from each capture, what Apple’s Vision saw in the image, the things Pool named and, once the engine’s models are installed, what the image looks like. With no words it lists the newest photos. It needs the .query operation.

Paging and counts

search returns up to 500 hits by default. Pass limit: nil for every match (up to 10,000), offset to skip, or the nextCursor of the last page; a cursor wins over an offset. The result also carries coverage, asOf, plan, nextCursor and traceID, as a query does. matchedVisually is true when the image model took part. It is false until the models are installed, and search then answers from text, labels and things alone.

Words PoolKit reads

  • Dates: “last week”, “in March”, “2025”, “last spring”, “this summer”. Seasons follow northern-hemisphere months: spring is March to May.
  • Holidays: Christmas (24 to 26 December), Christmas Eve and Day, New Year’s (31 December to 1 January), Easter (Good Friday to Easter Monday), US Thanksgiving (Thursday to Sunday), Halloween and Valentine’s Day. Each works as “Christmas”, “last Christmas”, “this Easter” or “Easter 2025”.
  • Kinds of capture: “screenshots”, “photos”, “videos”.
  • Singular and plural find each other: “sneaker” finds “sneakers”, “city” finds “cities”.

Capture details

Every hit from search and similar carries details: appKind and action come from rules over the things PoolKit found and the words on screen. No model guesses them.

Photos that look alike

The reference photo has to be inside the grant. Captures held back by the privacy gate are never returned. similar takes the same limit and offset, fills the same fields, and leaves out other shots of the reference’s own moment.

Facets

A facet is a count over everything the grant covers: a kind of thing (type), something Vision saw (label), a brand or a store. Each one carries a few sample photos, newest first. Use facets to build a browse screen without asking a question first. limit is at most 64 and samples at most 32.

Recurring things

These are counts and dates. PoolKit never says a person likes something, and it never names people. What a count means for your feature is your call, and yours to explain to the person.