Re: Indexing unknown words with Tsearch2 - Mailing list pgsql-general

From Tom Lane
Subject Re: Indexing unknown words with Tsearch2
Date
Msg-id 4374.1238594144@sss.pgh.pa.us
Whole thread Raw
In response to Indexing unknown words with Tsearch2  (Greg Maitrallain <greg.maitrallain@evodia.fr>)
List pgsql-general
Greg Maitrallain <greg.maitrallain@evodia.fr> writes:
> The problem is the writings contains many names of personnalities. For
> example : Churchill (the database covers WWII). But when I try to search
> for these names, nothing is found.

> I tried many things, like this introduction :
> http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/tsearch-V2-intro.html
> And I think the problem's root is that no lexem is found (I could even
> say an empty lexem is found).

I think you've misconfigured your dictionary list.  You normally want to
use an ispell dictionary together with some other one, like a snowball
dictionary.  Using it by itself means exactly that only words known to
the dictionary will be indexed.

            regards, tom lane

pgsql-general by date:

Previous
From: Greg Maitrallain
Date:
Subject: Indexing unknown words with Tsearch2
Next
From: Sam Mason
Date:
Subject: Re: string_to_array with empty input