Search & Research

Search Autocomplete: Where Suggestions Come From

Find out why a search box guesses your words, what shapes the guesses and how to control or clear them.

Key takeaways

  • Autocomplete predicts queries from past search activity, freshness and context, not from a check of what is true.
  • Suggestions may reflect your own history when you're signed in or when the browser has stored past entries.
  • Engines remove many predictions under published policies, but filtering is imperfect and you can report bad ones.
  • You can delete individual suggestions, clear history or turn predictions off, and browser and engine settings are separate.

Search suggestions come mostly from what other people have searched, filtered and adjusted for context such as your language, your location and sometimes your own history. As you type, the box sends the partial text to a server, which returns the likeliest completions in a fraction of a second.

Suggestions aren't statements of fact, and they aren't the search engine's opinion. They're predictions of what you might be about to ask. Knowing how they're built helps you use them well and keep them from steering you.

What happens as you type

Each keystroke, or each short pause, can trigger a small request containing the text so far. The server looks up completions for that prefix and sends back a short list, which the page draws under the box.

Speed is the hard part. A suggestion that arrives after you've typed three more letters is useless. Systems therefore precompute the best completions for common prefixes and keep them in memory, often in a tree-shaped structure called a trie, where each branch adds one character. Walking down the branches for "rou" leads straight to the popular queries that begin that way.

Distance matters too, so these lookup services are typically placed close to users. The same idea speeds up much of the web, as explained in how a CDN speeds up a website.

One keystroke's round trip
You Browser Suggestion server Type a few letters 1 Send the partial text 2 This happens before you press Enter Return likely completions 3 Show the dropdown list 4 You Browser Suggestion server Type a few letters 1 Send the partial text 2 This happens before you press Enter Return likely completions 3 Show the dropdown list 4

Where the candidates come from

The main raw material is the log of past queries. If many people type "how to reset a router" and few type "how to reset a rooster", the first rises to the top for "how to reset a ro".

Raw popularity isn't enough on its own. Engines also weigh:

  • Freshness. A topic suddenly in the news can climb quickly, then fade.
  • Language and region. The same prefix leads to different completions in different countries.
  • The words already typed. Completions fit the whole phrase, not only the last fragment.
  • Your own past. Something you searched before may appear first, often marked with a clock icon or a remove option.

When there isn't enough query data, as with a rare phrase, some systems assemble completions from common word sequences, or use language models to propose plausible endings.

The same box can draw on several sources

What looks like one dropdown may blend different things. In a browser's address bar you might see your bookmarks, pages you've visited, open tabs, search predictions from your default engine and the occasional sponsored suggestion. On a phone keyboard, a separate layer of word prediction adds its own guesses above the keys.

These are controlled in different places, which is why turning off one setting doesn't always silence everything.

Source Stored where Typical control
Popular searches Search provider Predictions setting in engine or browser
Your search history Your account at the provider Activity or history page
Browsing history and bookmarks Browser, possibly synced Address bar settings, clear history
Keyboard word prediction Keyboard app Keyboard settings
Form autofill Browser or password manager Autofill settings

If the browser keeps filling the wrong thing into forms, that's a different feature, covered in fixing autofill.

What gets filtered out

Showing an unprompted completion can do harm in ways that returning results for a deliberate search may not. A suggestion can put an ugly idea in front of someone who never asked, or appear to endorse a rumor about a named person.

Major engines publish policies for removing predictions, commonly covering sexually explicit content, hate, violence, dangerous activities, harassment and certain sensitive claims about individuals or elections. Filtering is partly automated and partly reviewed, and it makes mistakes in both directions.

Most services include a way to report a prediction. A blocked suggestion doesn't mean the topic is blocked: you can still type the whole query and search.

Legal disputes over defamatory or unlawful suggestions have arisen in several countries, with outcomes that differ. If a prediction about you or your business seems unlawful, check the provider's removal process and consider advice from a qualified lawyer where you live.

How suggestions can steer you

A dropdown arrives before you've finished thinking, and it's easy to accept the closest option. That can change the question you ask. If you meant to search "is this router secure" and accept a suggestion reading "this router hacked", you'll get a page weighted toward trouble.

A suggestion also isn't evidence. Many people typing "is X a scam" shows that people are wondering, and says nothing about the answer. When you want neutral results, finish typing your own words, and phrase the question without assuming the conclusion. The habits in searching more effectively help here.

Can suggestions be manipulated?

Because popularity feeds predictions, some people try to push a phrase upward by generating many searches for it, whether to promote a product or attach a negative word to a name. Engines look for artificial patterns, such as bursts from automated sources, and discount them.

Businesses sometimes receive offers to "control autocomplete" for a fee. Treat those with caution: the methods usually involve fake traffic that violates provider rules and may not last. If your company name shows an unfair prediction, use the official reporting route and address any real complaints behind it.

Privacy: what leaves your device

With search predictions turned on, partial text can reach the provider before you submit anything. That includes things you type and then delete. If you paste a private string into the address bar, some of it may be sent for suggestions.

You have several options:

  1. Turn off search suggestions in your browser's search or privacy settings. Menu names vary by version.
  2. Delete individual entries. In many desktop browsers you can highlight a suggestion from your history and press Shift plus Delete, or click a remove control.
  3. Clear or pause search history in your account, and set automatic deletion if offered.
  4. Use a private window for a one-off search, remembering that private browsing hides less than many people think.
  5. Choose a provider whose data practices suit you, as discussed in private search engines and what they promise.

On a shared computer, history-based suggestions can reveal one person's searches to another. Separate browser profiles keep them apart.

Unwanted suggestion: which control fixes it?
Is it something you searched or visited before? YES Delete the entry or clear that history 1 NO Is it offensive or a false claim about someone? YES Use the provider's report option 2 NO Do you want no predictions at all? YES Turn suggestions off in settings 3 NO Check other sources Look at keyboard prediction, autofill and installed extensions Is it something you searched or visited before? 1 IF YES Delete the entry or clear that history NO Is it offensive or a false claim about someone? 2 IF YES Use the provider's report option NO Do you want no predictions at all? 3 IF YES Turn suggestions off in settings NO Check other sources Look at keyboard prediction, autofill and installed extensions

When suggestions look wrong or strange

If the dropdown suddenly fills with unfamiliar shopping links or a different search engine appears, look at your browser rather than the engine. An unwanted extension or changed default can inject its own suggestions. Removing browser hijackers walks through the cleanup.

If suggestions seem tied to another person's interests, check whether you're signed into a shared account or whether history is synced from another device.

Using autocomplete as a research tool

Predictions are useful when you treat them as a map of how people phrase things. Type the start of a question and note the endings. You'll often find the standard term for something you could only describe, or a related question you hadn't considered.

Try adding a space and a single letter, or beginning with "how", "why" or "versus", to surface variations. Writers and site owners use this to understand readers' wording, one of several low-cost methods in keyword research without expensive tools.

Keep two cautions in mind. Your results are shaped by your own context, so someone else will see a different list. And the list tells you what's asked, never how often with any precision.

Why the same prefix gives different lists

Try the same letters on two devices and you may get two dropdowns. Several ordinary reasons explain it.

The two devices may be set to different languages or regions. One browser may be signed into an account with saved history while the other isn't. A phone app and a desktop browser can use different suggestion sources, and an address bar mixes in local items that a search page doesn't have.

Timing counts too. A burst of interest in a name or event can change completions within a short period, and the change may reach different regions at different times. Providers also test variations on small groups of users.

So a screenshot of a suggestion proves little by itself. It shows what one box displayed to one person at one moment. If you're checking a claim that "the search engine suggests this about everyone", reproduce it signed out, on another device and from the same region setting, and expect some variation even then. Personalized and local results explains which clues travel with a query.

Autocomplete inside apps and sites

Shops, video services and documentation sites run their own suggestion boxes. These usually draw on their catalog and their own visitors' searches, and they may promote particular items. If you can't find something through suggestions, submit the search anyway, since the full results often contain far more than the dropdown.

If you build such a box yourself, wait for a brief pause before sending requests, cancel outdated ones, support keyboard arrows and screen readers, and avoid logging what people type before they submit it unless you've told them.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Search & Research →

Latest news on this topic