Пропустить навигацию
Inverted indexes are the perfect structure for text search.
0:00 / 0:36

Inverted indexes are the perfect structure for text search.

Ben Dicken

@BenjDicken48 тыс. подписчиков

Открыть в 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.