Re: Indexing Metaphone?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Indexing Metaphone?
Дата
Msg-id 20020605121507.B16840-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Indexing Metaphone?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
On Wed, 5 Jun 2002, Josh Berkus wrote:

> Folks,
>
> I'm building a database that does a lot of fuzzy-string searches.  As such,
> I'd like to index the metaphone results of certain columns.  However, I get
> this when I try:
>
> jwnet=> CREATE INDEX idx_locations_metaphone ON
> locations(metaphone(location_name, 12));
> ERROR:  parser: parse error at or near "12"

Functional indexes only take columns as arguments IIRC.  Make
a cachable function that returns metaphone($1, 12) given the
appropriate type and index/use that. :)



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Indexing Metaphone?
Следующее
От: Joseph Syjuco
Дата:
Сообщение: simple select statement inquiry