跳过导航
Inverted indexes are the perfect structure for text search.
0:00 / 0:36

Inverted indexes are the perfect structure for text search.

Ben Dicken

@BenjDicken4.8万 位关注者

在 X 上查看
535 个赞下载原帖

32,297 次观看

Inverted indexes are the perfect structure for text search. "Inverted" here doesn't mean upside-down. Rather that it's an inversion of the original data. We take every distinct word from a set of documents and build a "posting list" of references back to every location where that word is used. When structured right, this lets databases like Postgres do fast lookup of words and phrases. TIN takes all this to the next level for Postgres. Span queries, fuzzy matching, wildcard matching, regex. All while strictly holding to Postgres durability, replication, and transactional semantics. Also, it's FAST. Who doesn't love a good benchmark?

10 条评论

评论来自 X (Twitter) 上的原帖

  • Eddy 的头像

    @eddy_builds

    FAST balls indeed

    4 个赞

  • Rishabh Chauhan 的头像

    @rishabhc32

    will you open source it?

    1 个赞

  • Ratul Dawar 的头像

    @ratuldawar18

    But this doesn’t include like queries right?

    1 个赞

  • Ben Dicken 的头像

    @BenjDicken

    The index is the structure for making searches fast. TIN has a complete syntax for specifying search queries, TINQL

  • Samantha 的头像

    @SeoSamantha

    Hi Ben, just following up on the DM I just sent regarding a potential Bloomberg interview. Would love to hear from you when you get a chance.

  • shane borden 🛩️ 的头像

    @sborden76

    How did you resolve the hot block 0 issue with regular GiN indexes. No more pending list? Fast update?

  • Darius Rey 的头像

    @Xrey_Trading

    I Use it too I how I can Filter/orga my data in the cash (Looked by superbuffer)

  • Wanten 的头像

    @WantenMN

    @grok 这个索引方式支持多字符串词组吗?

  • liprais 的头像

    @liprais

    good idea,now try with chinese texts

  • Pankaj Kumar 的头像

    @pankajkumarhq

    Half the teams I see bolt on Elasticsearch before they have 10k rows. Postgres was fine, Ben.