Features

Search

How Hubstruct's search works. Words, images and other media as queries, the signals it combines, Everything versus Look, and the command palette.

Hubstruct treats every media as a rich document: its title and description, its file name, the text in the picture, its tags, and the picture itself. A search, whether words, an image, another media, or words with an image, is matched against all of it at once, and the results are ranked together.

Searching

There are three places to search:

  • A list's search box, on the Media page and every list like it, searches that list. Ctrl F (⌘F) jumps to it.
  • The top bar's search searches the whole library and opens the Media page with the results.
  • The command palette, Ctrl K (⌘K) anywhere, searches media, albums, tags, people and the app's pages at once. See below.

Words

Type anything: dog on a beach, receipt 2023, IMG_2041, golden_hour. Hubstruct searches as you type.

An image

To find media that look like a picture you have, drag an image file onto a search bar (it lights up as you get close), paste one, or pick one with the image button. The image is embedded and compared with every media. You can add words too: an image of a beach and the word sunset.

Another media

Find similar on any media (right-click it, or its page's Similar card) searches by that media. It's pinned first in the results, and everything else follows by how alike it is.

How results are ranked

Each way of matching makes its own ranked list:

SignalMatches
IDAn exact media id, pinned first
WordsFull-text search over titles (strongest), descriptions, file names and the text in the picture, with English stemming, and the word you're typing matched as a prefix
TagsTags whose every word is in the search (large dog finds large_dog), or, while typing, whose name starts with it
File nameSubstrings and near spellings, for names like HpdUcAg.png
MeaningYour search, its words, image or media, against each media's document embedding: its text and picture as one

The lists are then fused with reciprocal rank fusion: each media scores the sum of 1 / (60 + rank) over every list it appears in. A media that matches the title and a tag and is close in meaning beats one that's merely first in a single list, without any per-signal weights to tune.

A single word with digits or capitals inside it, like IMG_2041 or HpdUcAg, is treated as a name or an id, not as something to search by meaning.

In the table view, the Match column shows why each media matched.

Every media is in the meaning list

Closeness in meaning is a continuum: every media is somewhat like any search. So the meaning list ranks the whole library rather than cutting it off at a threshold. The most alike come first, and the list keeps paging. Only the closest few get a meaning chip, since a chip on all of them would say nothing.

Filters still apply

Search works with every filter: type, file type, tags, favorites, people, albums and dates narrow every signal's list before they're fused.

Everything, or Look

While searching, a switch chooses what to match:

  • Everything (the default) matches what media are called, what's said about them, what they're tagged with, and what they show.
  • Look matches only what media look like: your search against each media's pixels alone. Names, descriptions, text and tags are ignored, so nothing comes up because of what it's called or said to be.

Look is what you want for "more pictures like this one", and it's what Find similar by look uses.

Closest, or farthest

A second switch turns the ranking around: Farthest shows the least alike first. It's a quick way to find what doesn't belong, such as the odd one out in an album, or media a rule shouldn't have picked.

The command palette

Ctrl K (⌘K) opens the command palette from anywhere. It searches, all at once:

  • Media, with the same search as the Media page, showing why each matched;
  • Albums and tags, by name and description;
  • People, by name;
  • The app's pages, including sub-pages like Settings › Libraries.

Use ↑ and ↓ to move, Enter to open, and Esc to close. Each group's See all opens its page with the search filled in. Results are a snapshot of what you typed; they don't change underneath you.

Search in album rules

Album rules use the same meaning search: a rule's search phrase is compared with every media's embedding, and everything at or above the rule's similarity threshold matches. See Albums.

Why search improves over time

The meaning signal uses each media's document embedding, which is made last, from its title, descriptions, text and tags. Until a media's steps have run, it's found by file name and by look only. As descriptions, titles and tags arrive, the embedding is redone and the media becomes findable by what's in it. If search seems to miss recent media, check the dashboard: the Embedding step may still be catching up.