Text search prefix matching and stop words

Поиск
Список
Период
Сортировка
От Matthew Nelson
Тема Text search prefix matching and stop words
Дата
Msg-id 039b712e-e02f-4470-b6b4-7f810cc1bcb5@www.fastmail.com
обсуждение исходный текст
Ответы Re: Text search prefix matching and stop words  (Pavel Borisov <pashkin.elfe@gmail.com>)
Список pgsql-bugs
Prefix matching should not omit stop words, as matching lexemes may legitimately begin with stop words.

# select to_tsquery('english', 'over:*') @@ to_tsvector('english', 'overhaul');
NOTICE:  text-search query contains only stop words or doesn't contain lexemes, ignored
 ?column? 
----------
 f
(1 row)

I noticed this after implementing interactive, incremental search in an application. As the user typed "overhaul," with
eachsuccessive character executing a search, "ove" and "overh" matched a particular document, but "over" did not.
 

Reproduced in PostgreSQL 11, 13, and 14.



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

Предыдущее
От: "Narayanan Iyer"
Дата:
Сообщение: RE: GROUP BY using tablename.* does not work if tablename has 1 column with NULL values
Следующее
От: Pavel Borisov
Дата:
Сообщение: Re: Text search prefix matching and stop words