Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id C8713475DB5 for ; Wed, 5 Jun 2002 14:11:56 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 4DA21475852 for ; Wed, 5 Jun 2002 14:11:33 -0400 (EDT) Received: from [66.219.92.2] (HELO chocolate-mousse) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 1500309 for pgsql-sql@postgresql.org; Wed, 05 Jun 2002 11:11:32 -0700 Content-Type: text/plain; charset="us-ascii" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: pgsql-sql@postgresql.org Subject: Indexing Metaphone? Date: Wed, 5 Jun 2002 11:12:02 -0700 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206051112.02090.josh@agliodbs.com> X-Archive-Number: 200206/39 X-Sequence-Number: 8004 Folks, I'm building a database that does a lot of fuzzy-string searches. As such,= =20 I'd like to index the metaphone results of certain columns. However, I get= =20 this when I try: jwnet=3D> CREATE INDEX idx_locations_metaphone ON=20 locations(metaphone(location_name, 12)); ERROR: parser: parse error at or near "12" jwnet=3D> is this a syntax error, or do I need to create a column to hold the metapho= ne=20 values in order to index them? --=20 -Josh Berkus