Re: tsearch2 gives NOTICE: word is too long

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "AI Rumman *EXTERN*" <rummandba(at)gmail(dot)com>, "pgsql-general General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: tsearch2 gives NOTICE: word is too long
Date: 2010-02-22 15:47:01
Message-ID: D960CB61B694CF459DCFB4B0128514C203938190@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

AI Rumman wrote:
> When I am using the query:
>
> select length(description),
> to_tsvector('default',description) as c from crmentity ;
>
> Getting error:
>
> NOTICE: word is too long
>
> Postgresql 8.1.
>
> Could anyone please tell me why?

Because there is a "word" in the "description" column that
exceeds the maximal length (4096 I think).

This is not an error, just an information that you will not
be able to search for this word.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Allan Kamau 2010-02-22 16:01:55 Re: helo
Previous Message Albe Laurenz 2010-02-22 14:47:24 Re: text search in 8.1