Thread

  1. Re: KEEPONLYALNUM for pg_trgm is not documented

    Bruce Momjian <bruce@momjian.us> — 2011-09-05T17:25:40Z

    Robert Haas wrote:
    > On Fri, Mar 11, 2011 at 3:59 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
    > > On Fri, Mar 11, 2011 at 5:52 PM, Itagaki Takahiro
    > > <itagaki.takahiro@gmail.com> wrote:
    > >> contrib/pg_trgm in 9.1 becomes more attractive feature by index supports
    > >> for LIKE operators, but only alphabet and numeric characters are indexed
    > >> by default. But, we can modify KEEPONLYALNUM in the source code to
    > >> keep all characters in n-gram words.
    > >>
    > >> However, the limitation and KEEPONLYALNUM are not documented in the page:
    > >> ?http://developer.postgresql.org/pgdocs/postgres/pgtrgm.html
    > >>
    > >> An additonal documentation patches acceptable? The issues would be a FAQ for
    > >> non-English users. I heard that pg_trgm will be one of the *killer features*
    > >> of 9.1 in Japan, where N-gram based text search is preferred.
    > >
    > > +10
    > 
    > It's certainly not too late for doc patches.
    
    I have applied the attached documention patch to 9.0, 9.1, and current
    to mention that only ascii alphanumeric characters are processed by
    contrib/pg_trgm.
    
    -- 
      Bruce Momjian  <bruce@momjian.us>        http://momjian.us
      EnterpriseDB                             http://enterprisedb.com
    
      + It's impossible for everything to be true. +