Re: BUG #3798: Add fuzzy string search in TSearch2

From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Rikardo Tinauer <rikardo(dot)tinauer(at)eba(dot)si>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3798: Add fuzzy string search in TSearch2
Date: 2007-12-04 12:04:41
Message-ID: 47554259.8080807@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Rikardo Tinauer wrote:
> The following bug has been logged online:
>
> Bug reference: 3798
> Logged by: Rikardo Tinauer
> Email address: rikardo(dot)tinauer(at)eba(dot)si
> PostgreSQL version: 8.3
> Operating system: All
> Description: Add fuzzy string search in TSearch2
> Details:
>
> This is not really a bug but just an idea I saw on IBM DB2. They have the
> capability to do the fuzzy search on full text indexes.
>
> It would be great to have this in PostgreSQL.
>
> We are developers of Documents System, out primary dateabase is Postgres and
> many of our major customers (large companies) use our DMS on Postgres (by
> the way excellent database you guys develop). Since scanning is one of
> possibilities how to get document into DMS we thought it would be great if
> one could search the words of scanned document (we perform OCR on document).
> But OCR recognized words aren't fully trustworthy (they have errors), so
> fuzzy search would eliminate them since searching on word 'invoice' would
> also return hits with words like 'inv0ice' etc...

you might want to look into some of the contrib modules provided with
the main tarball:

http://www.postgresql.org/docs/8.3/static/pgtrgm.html
http://www.postgresql.org/docs/8.3/static/fuzzystrmatch.html

Stefan

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2007-12-04 13:05:49 Re: BUG #3750: Invalid frontend message type 112
Previous Message Rikardo Tinauer 2007-12-04 11:56:31 BUG #3798: Add fuzzy string search in TSearch2