Re: Simplifying Text Search

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Simplifying Text Search
Дата
Msg-id 87sl3ajnm0.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Simplifying Text Search  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
"Peter Eisentraut" <peter_e@gmx.net> writes:

> Am Dienstag, 13. November 2007 schrieb Gregory Stark:
>> "Peter Eisentraut" <peter_e@gmx.net> writes:
>> > What we'd need is a way to convert a LIKE pattern into a tsquery
>> > ('%foo%bar%' => 'foo & bar').  Then you might even be able to sneak
>> > index-optimized text search into existing applications.  Might be worth a
>> > try.
>>
>> I don't think that's the right direction to go. Notably "%foo%bar%" isn't
>> the same thing as "foo & bar". Also most tsearch queries can't be expressed
>> as LIKE patterns anyways.
>
> The requirement is to express LIKE patterns as tsearch queries, not the other 
> way around.

As an optimization to use GIST indexes this is a cool idea. Much like our
existing functionality which converts "col LIKE 'bar%'" to range queries so it
can use btree indexes.

But it doesn't help the people who find "col @@ 'foo & bar'" confusing.
They're just being thrown off because "@@" is an unfamiliar operator.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication
support!


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Simplifying Text Search
Следующее
От: Gregory Stark
Дата:
Сообщение: Unnecessary casts in pg_cast