#search

Search and finding experiences / 9 posts

Newsletter
  • Get a newsletter digest every Friday:
Contact

Send me feedback, tips, bug reports, and anything else:

About me and the blog

My name is Marcin Wichary (he/him). I’ve worked as a UX designer, typographer, front-end person, and manager at Google, Medium, and Figma. I’ve also written a book about keyboards and typing, gave talks, and published essays about design, typography, and technology.

Unsung is my blog about software craft and quality.

More info about Unsung

Send me feedback, tips, bug reports, and anything else:

More info about Unsung

iOS’s unpredictable search

This is what happens when I search for “access” in my iPhone’s settings:

Every time, the results appear in a different order. Here are all the I’m-done-typing states from the above video:

There are a few reasons this might be happening, and to be honest I don’t fully understand how they got there.

But one idea might be something I’ve seen a few times in my career that’s worth knowing about. It’s possible that at some point in the search chain… nothing takes care of reordering the items. They are found, they are filtered properly for the query, but then no algorithm ranks them – or, they are all ranked with the same value, and within that value, whatever random order they arrived in becomes what’s shown to the user.

The consequence is that the results are not deterministic, but I believe they should be.

I know search is more of a “living, breathing organism” compared to other stable navigation mechanisms – but it’s still useful for the user to match things consistently, and rely on certain things being repeatable. Even if you don’t understand the algorithm, you can learn that a certain result always matches on the first, second, or third location. This might change once in a while as the search evolves, but it’s better than nothing.

The extra challenge in this particular case is that settings are already scary – even recently, we’ve seen some extra paranoia where a chunk of the public, likely further frightened by the new AirPods listening feature, started spreading videos prompting people to toggle off an iOS setting they didn’t really understand.

“Access” is a harder query, so here’s another example. You would imagine typing “accessibility” would show you the main accessibility settings as the first result, every single time. Yet, here it’s the same inconsistent story:

Even Google search, where the results truly change all the time, seems to be more deterministic.

And, speaking of! Android doesn’t have the same problem:

Sorry about the accidental Uber Eats promo.

Crammed and dangerous

This is what happens when I search through photos on my iPhone:

I’ll repeat and emphasize the last frame below, because it’s a resting state that doesn’t offer much rest. I am happy with the train results and I just want to look at them in peace – but now there’s a pop-up in the way. What would you do to get rid of it?

Trying to swipe it away doesn’t work:

Tapping on the available largest surface – the photos – makes the photo you tap on take over the entire screen, which doesn’t help:

Tapping on the input field replaces it with another restless pop-up:

Tapping on X clears the search, so that’s not good:

Tapping on the other X just leaves the search altogether:

Tapping on the keyboard continues typing and adds to “train,” in effect going elsewhere, too:

Noticing that one of the entries in the pop-up is “train” and tapping on it works – sort of – but it replaces the input field with a token, and slightly adjusts search results, which are both worrisome in their own way:

Okay, there are three answers. None of them feels great.

One is to drag the photo chute down and then up:

While I sometimes can enjoy the kind of interface action that is effectively “unplug it and plug it back again,” here it doesn’t feel natural, and the space to perform is limited, too.

And speaking of limited space… the other solution is to tap on one of the few small areas that are actually truly inactive – the Search header, or the Top Results:

Lastly, I believe the most appropriate answer is pressing the blue loupe key (effectively the equivalent of Enter):

Why doesn’t this path feel intuitive? Because the results already appear as I type. The rest of the flow itself suggests Enter isn’t necessary – and it’s not as natural for me to think of Enter as solely a “keyboard hider.”


Despite both human factors and computers starting as military projects, I don’t love military metaphors – yet, this feels like a good example of a minefield interface.

This is because arriving at this kind of a claustrophobic screen feels dangerous; any misstep can derail the whole experience, sending you to another place you have to exit as well.

I wish I could tell you what’s my yardstick to separate a regular UI where some tap targets just do expected things, and one where there are so many they all become mines. All of these above, in isolation, make sense – but altogether they end up adding to what feels like a pretty unpleasant, anxiety-inducing interface.

I think this example highlights the value of intentionally leaving some areas of the interface that feel “safe”…

…although you could also say that in this case, that would be treating symptoms. I think the real problem is that in response to my search, the UI did two different things – one was the photos, the other the suggestion pop-up – and overlapped the results of those things. The pop-up feels strangely “growth hack-y” to me, as if the UI was optimized for constant forward momentum, nudging me to tap on new searches over and over until the batteries run out. It made me feel there was something wrong with my search for “train,” when it was a perfectly valid, innocuous search.

This is a wider pattern I don’t love and/or understand. Here is an example of the same thing used in Notes on a Mac as well – and it’s even worse, because the suggestions are bad, and because the pop-up always covers the most important result:

At least here, I am at still equipped with my treasured Esc key, which works reliably in a lot of situations like this – a jetpack to jump over the minefield, if you will – but that’s a small consolation prize.

(Enter works here too, but see above. Also, the pop-up reappears aggressively even on horizontal arrow key presses!)

An interface that feels like a minefield isn’t great. An interface where you have to over and over again keep escaping something to return to a resting state isn’t great, either.

Internet Archive’s alphabet

I love the Internet Archive, but I don’t love its interface.

It’s just… not great all around, homely and confusing. It has some endearing qualities, harking back to the web of the 1990s without endless commerce and incessant growth hacking – Wikipedia feels the same – but it’s unpleasant in many ways, and won’t inspire you the way good interfaces will. (Even the thing I once praised it for falls apart in details.)

So this below, once more, is going to be caveated.

I have been uploading things to Internet Archive for almost a decade now, and my collection of various font and typewriter and interface documents just reached a round 1,000 items, which made me proud and happy.

While browsing it myself yesterday, I noticed a new-to-me alphabet bar that pops up when you sort by title:

I am guessing it’s inspired by tabs in library catalogs?

The interface is ugly. There are big non-clickable gaps between letters. The tooltips were a mistake. But outside of that, I found it fun and delightful to explore a collection this way, and I’m not sure I have ever seen this kind of an “old-fashioned” approach before.

Gmail’s typable labels

Some time ago, I praised the URL design of Flickr, and the URL design of Unsung tries to follow a lot of the same principles. I’ll write about it some day.

But those principles do not just apply to URLs, and I was just reminded of it when using Gmail.

Since its beginnings, Gmail has had a concept called labels (reigniting the age-old debate between folder users and label users). True to Google’s origins, it’s also had a prominent and powerful search box.

You can navigate to a label by clicking on the left…

…but you can also search for it by typing its name:

Clicking on the left actually pre-fills the search, teaching you that next time you can also do this from the keyboard – and also that you can combine it with other things you see or type in that box:

It all feels pretty natural, and I believe this was hard effort by the team, back in the day. I think so because the default/​cheap way to do it would be something like this:

I can see products choosing to do that, and I bet many did.

But just like with poorly-designed URLs, this forces the user to jump through all the UI hoops to get somewhere. In Gmail, at some point, instinctively and without thinking, and having never done it before, you might find yourself typing label:unsung "molly guard" and it will work, and you might not even realize what your fingers just learned.

“Each one of these buttons has four distinct purposes.”

A nice blog post by Nathan Manceaux-Panot on Pending Design about the subtle design of the tabs underneath the search results in the programming editor Nova:

Through buttons right below its text field, the bar also lets you filter results: only show files, only show symbols, or only show symbols in current tabs. Here’s the thing, though: each one of these buttons has four distinct purposes. They’re not just for clicking.

The tabs are clickable as they normally are, but they’re also a treasure map (to tell you something is possible), a cheat sheet (to remind you how to do it again), and an onramp for faster keyboard navigation.

I’d add two more things to the celebration:

  • I myself often forget onboarding is not just about the first run, but also about reinforcement. Here, this UI does a lot of reinforcing over time, helping you build the habit. Pressing the key highlights the tab. Clicking on the tab adds a key as if you pressed it, and so does using an advanced shortcut (e.g. ⌃⌘O instead of ⇧⌘O). Even slash as a symbol comes from path names, so you might naturally associate it with files.
  • The search pop-up always has a nice contrasty appearance: dark when the background is light, or vice versa. Many modern interfaces go for white background for every UI element and surface. This seems like solely an aesthetic choice, but has more consequences when it comes to visibility of things, and even hierarchy. I am personally always excited when I see a duochrome app these days, because it feels like the team knows what they’re doing and isn’t just chasing visual trends. (Below is an example from Bear.)

Face with symbols over mouth, apparently

A nice moment in the iOS emoji keyboard – after selecting an emoji from the grid, its name shows up for a second:

I have small reservations here, as reusing a placeholder like this trips up my “this is cheap” alarm. But otherwise I like that this – just like keyboard shortcuts in menus or tooltips – ambiently teaches you the alternative representation of the emoji that you can use later to get to it faster.

(Another way of looking at it: This is a tooltip in a place where tooltips cannot exist.)

Chrome’s abnormal tab search

Chrome’s find option, like every search coming from a good home, does something clever with accented characters – it normalizes them:

No matter whether you search with a proper accented character, or with its basic Latin equivalent, all the same stuff matches: The “ø” letter is treated the same as “o” both in the input field, and then in the search itself.

Yet, Chrome’s tab search inexplicably doesn’t do that, which confused me when working on a post about diacritics earlier this week. Here, it should match all four open tabs:

Tab search was introduced years ago; the Occam’s Razor says this isn’t a recent bug, but that the feature has always behaved like this. I filed the bug, but even if it gets fixed quickly, I think this doesn’t reflect well on Chrome’s team. If the right code already exists for ⌘F, why not reuse it? If it cannot be reused, why not repurpose at least its unit tests or the QA process to make sure this doesn’t fall through the cracks? Normalization should be treated as a core property of any search, rather than an optional “nice to have.”

But, Marcin, didn’t you just invalidate your assertion that diacritics actually matter? After all, wouldn’t you input “nestlé” instead of “nestle” if they did?

To this, I have a few answers:

  • Input is not output. This is no different than autocorrect, autocomplete, or other IME helpers.
  • The very fact that on many keyboards accented characters are hard to input is itself a sign of anglo-centrism of companies that made early typewriters (Remington, which established a lot of European layouts like QWERTZ and AZERTY, employed a person who bragged he didn’t actually speak any languages in a “how hard could it be” way) and then most microcomputers.
  • There is this really interesting rule, also known as Postel’s Law: “be conservative in what you output, but liberal in what you accept as input.” It’s not universally applicable – sometimes it’s better to teach the user to be more explicit if it benefits them in the longer run – but it feels appropriate to me here.

Why does it matter specifically for the ⌘F and the tab search experience? I have this personal theory: the simplest the search, the more the users will blame themselves if it doesn’t work, and assume the tab or the string just isn’t there, rather than rewrite their query. That’s what happened to me. I assumed that the tab wasn’t open and tried to get to it again, wasting time and effort.

The rule might be universally true for any UI surface – the tighter it gets, the less likely we assume it can break. After all, there is a manual for a typewriter, but there isn’t one for the pencil! And these UIs do feel positively basic; they are small windows with basically one input field and an immediate as-you-type reaction.

“Naïve, simple, not good enough.”

This is a thoughtful post from Florian Schulz about designing a typeahead experience.

I liked the details both within the implementation – for example, making sure the kerning is preserved! – but also in the presentation. I particularly enjoyed Schulz making the component demo itself, rather than using prerecorded videos. (I was delighted to discover that even the first large “picture” of the component is actually interactive!)

A small comment to this bit:

Unfortunately, not all browsers expose the selection or accent color of an operating system. For example, if a user would set the accent color in macOS to pink, the special CSS keyword color “Highlight” will still result in a light blue color in Safari. In other browsers like Chrome, the color will match the user preference. But since this is an attack vector for user tracking / fingerprinting, Apple made the right choice to hide the user preference from developers.

From my understanding, this is not necessarily correct. For example, in theory, the purple visited link color can be used for fingerprinting, by building a profile of whether or not I visited one of the hundreds of popular websites, quietly in the background.

The way browsers solve this is to never expose the color programmatically back to JavaScript – if your code asks for a link color, it will be blue regardless of whether the link was visited or not. It seems to me that the Highlight color could be used the same way here. Given that CSS now supports things like color-mix(in srgb, Highlight 20%, white), it would even allow a designer to riff on the color without ever knowing what it is.

Bear’s seamless OCR integration

I feel like social media and recently the slate of AI-powered “tell me what’s here” features continue to show us the power and longevity of screenshots. After all, nothing beats a more or less approachable shortcut and a file format that works literally everywhere.

But screenshots have issues, and I liked how Bear (a note-taking app) brilliantly integrated OCR inside images into its flows. This just worked for regular ⌘F finding without me having to do anything:

The recognized text also appears when you search through notes, and so on. It’s just a great peace of mind that you’re not going to miss on text just because you happened to screenshot it.

Apple operating systems have had detection of text inside images for a while – I know on iOS in particular it sometimes gets in a way of normal gestures – so I thought it was just that, but curiously this doesn’t work as nicely in Apple’s own Notes.