Re: What is the different between pg_trgm search and FULL Text search?

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: What is the different between pg_trgm search and FULL Text search?
Дата
Msg-id 41fdc957911987fc459754c33bef1908.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на What is the different between pg_trgm search and FULL Text search?  (AI Rumman <rummandba@gmail.com>)
Список pgsql-general
On 23 Duben 2012, 13:31, AI Rumman wrote:
> What is the different between pg_trgm search and FULL Text search?
> Anyone has idea on these, please let me know.

pg_trgm performs "trigram matching" i.e. determines similarity of strings
based on trigrams (three-character strings). It has no notion of a
language, does not attempt to split the text into tokens / transform the
words to basic forms etc. It merely splits the string into three-character
pieces and stores this info.

tsearch2 (a fulltext search) works with dictionaries for each language,
turns the words into basic forms, allows you to define synonyms and much
more. It has much more insight into the language structure etc. It allows
you to build complex queries (AND, OR, NOT, ...) etc.

Tomas


В списке pgsql-general по дате отправления:

Предыдущее
От: AI Rumman
Дата:
Сообщение: What is the different between pg_trgm search and FULL Text search?
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Re: How to convert BYTEA (from decrypt) to TEXT?