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

Re: a tsearch2 (8.2.4) dictionary that only filters out stopwords

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Urbański <j(dot)urbanski(at)students(dot)mimuw(dot)edu(dot)pl>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: a tsearch2 (8.2.4) dictionary that only filters out stopwords
Date: 2007-11-09 17:28:28
Message-ID: 12183.1194629308@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
=?UTF-8?B?SmFuIFVyYmHFhHNraQ==?= <j(dot)urbanski(at)students(dot)mimuw(dot)edu(dot)pl> writes:
>> If there is a use-case for it, IMHO it'd be better to add a boolean
>> accept-or-pass-on parameter to the "simple" dictionary than to add a
>> whole new dictionary type.

> Ah, I never thought of it. You may be very right - it does look like an
> easier solution. However, it would require coding some basic parsing
> logic into the dex_init procedure, because right now the 'simple'
> dictionary expects dict_initoption to be a path to the stopwords file.

That doesn't have a whole lot to do with where we are today:
http://developer.postgresql.org/pgdocs/postgres/textsearch-dictionaries.html#TEXTSEARCH-SIMPLE-DICTIONARY
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/dict_simple.c

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2007-11-09 17:33:48
Subject: Re: krb_match_realm patch
Previous:From: Alvaro HerreraDate: 2007-11-09 17:28:24
Subject: Re: New tzdata available

pgsql-patches by date

Next:From: Jan UrbańskiDate: 2007-11-09 17:35:32
Subject: Re: a tsearch2 (8.2.4) dictionary that only filters out stopwords
Previous:From: Zdenek KotalaDate: 2007-11-09 17:02:27
Subject: Re: Fix pg_dump dependency on postgres.h

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