Skip site navigation (1) Skip section navigation (2)

Re: Can pg_trgm handle non-alphanumeric characters?

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: MauMau <maumau307(at)gmail(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Euler Taveira <euler(at)timbira(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Can pg_trgm handle non-alphanumeric characters?
Date: 2012-05-10 16:59:24
Message-ID: CAHGQGwFDzxn2z3VPMi39pWUf+Cd3ZF-s7tMyPiiKYvZPftiF5Q@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Fri, May 11, 2012 at 12:07 AM, MauMau <maumau307(at)gmail(dot)com> wrote:
> Thanks for your explanation. Although I haven't understood it well yet, I'll
> consider what you taught. And I'll consider if the tentative measure of
> removing KEEPONLYALNUM is correct for someone who wants to use pg_trgm
> against Japanese text.

In Japanese, it's common to do a text search with two characters keyword.
But since pg_trgm is 3-gram, you basically would not be able to use index
for such text search. So you might need something like pg_bigm or pg_unigm
for Japanese text search.

Regards,

-- 
Fujii Masao

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2012-05-10 17:02:34
Subject: Re: Draft release notes complete
Previous:From: Josh BerkusDate: 2012-05-10 16:55:37
Subject: Re: Draft release notes complete

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group