Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Full text i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 15966 of 17437
Post > Topic >>

Re: Full text index without accents

by lbarcala@[EMAIL PROTECTED] ("Fco. Mario Barcala" =?ISO-8859-1?Q?R Jul 22, 2008 at 08:52 PM

And which are the types of argument and returning values of a pl/sql
function which preprocess de text?

I have been searching that, for example, something like this works fine:

CREATE INDEX textindex ON do***ent USING
gin(to_tsvector('english',upper(text)));

where text is the text column of do***ent. But I have tried to do
something like:

CREATE INDEX textindex ON do***ent USING
gin(to_tsvector('english',myfunction(text)));

where myfunction is a PL/SQL function which call upper one, but I didn't
find which are the types of the myfunction argument and returning value.

I am a PL/SQL novice and I didn't find how to do it yet. Of course, then
I will have to change upper experiment to my objective: to index without
accents. I don't know if PL/SQL is the better option to build such
function.

Thanks,

  Mario Barcala

> You can preprocess text (replace accent by nothing) before 
> to_tsvector or to_tsquery
> 
> 
> 
> Oleg
> On Thu, 3 Jul 2008, lbarcala@[EMAIL PROTECTED]
 wrote:
> 
> > Hi again:
> >
> > I am trying to create a full text configuration to ignore word accents
in
> > my searches. My approach is similar to simple dicionary one, but i
want to
> > remove accents after converting to lower.
> >
> > Is it the only way to do it to develop another .c and write my own
> > dict_noaccent.c, and then compile and install it into the system?
> >
> > Regars,
> >
> >  Mario Barcala
> >
> >
> >
> 
>  	Regards,
>  		Oleg
> _____________________________________________________________
> Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
> Sternberg Astronomical Institute, Moscow University, Russia
> Internet: oleg@[EMAIL PROTECTED]
 http://www.sai.msu.su/~megera/
> phone: +007(495)939-16-83, +007(495)939-23-83


-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 6 Posts in Topic:
Full text index without accents
lbarcala@[EMAIL PROTECTED  2008-07-03 13:05:06 
Re: Full text index without accents
oleg@[EMAIL PROTECTED] (  2008-07-03 19:58:56 
Re: Full text index without accents
lbarcala@[EMAIL PROTECTED  2008-07-22 20:52:48 
Re: Full text index without accents
oleg@[EMAIL PROTECTED] (  2008-07-23 02:27:03 
Re: Full text index without accents
lbarcala@[EMAIL PROTECTED  2008-07-24 10:46:46 
Re: Full text index without accents
jbondc@[EMAIL PROTECTED]   2008-07-24 10:53:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:54:58 CST 2008.