AlgoViz

Full-text search

medium 28 min

Full-text search finds documents by the words in them and puts the best ones first.

Where it shows up

The same pattern appears across everyday software.

  • Shop search

    Words, typing errors, filters by brand and price, and a boost for items in stock.

  • Log exploration

    Programs send log lines, and engineers search them by words, time and service. Old indices are deleted whole.

  • Help centres

    Synonyms matter most: people write money back when the article says refund.

  • Code and document search

    Positions and special tokenizers find phrases and parts of names.

  • Security monitoring

    Events from many machines are searched and counted to find unusual patterns.

  • Search in a small app

    SQLite has FTS5 with a bm25 function and PostgreSQL has GIN text search: no extra server needed.