Re: How to write a own parser for full text search

From: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
To: Antonio Franzoso <antoniofranzoso(at)yahoo(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to write a own parser for full text search
Date: 2011-11-21 19:05:01
Message-ID: 4ECAA0DD.6000400@archidevsys.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 21/11/11 22:51, Antonio Franzoso wrote:
> Hi all,
> I have installed PostgreSQL server on a Windows Server 2008 server and
> I need to write a more complex parser than the default one in
> PostgreSQL. Searching on internet i found this example:
> http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/HOWTO-parser-tsearch2.html
>
> where the parser is written in C language. I would know if can I write
> the parser in another language (Java, I'm very poor in C)? And, if I
> can, what kind of file would contain the functions of the parser (a
> dll file, a class file).
> The last question is: in that example are used some functions
> (PG_GETARG_POINTER, PG_GETARG_INT32, and so on) that seem PostgreSQL
> specific functions; which functions can I use in java?
> May be these are banal questions, but I'm a newbee and I don't found
> more resources on Internet! :)
>
> Thanks in advance,
> Antonio.
>
>
>
>
Hmm...

I am a Java developer, and Java is my favourite language.

Hiwever, I would never recommend writing this kind of thing in Java, as
C is much more appropriate. So if I did not know C, I would learn C for
this.

Any serious devloper should be reasonable fluent in AT LEAST 2 computer
langusages, and C is quite widely used.

More impoernatly, see if you can run PostgreSQL on LInux or a variety of
Unix, as Micosoft is not ideal as an O/S for performance and other
reasons (to put it diplomatically).

REgards,
Gavin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joost Kraaijeveld 2011-11-21 19:10:42 Exporting 1 text column from all rows from a table to a file per row?
Previous Message Peter Geoghegan 2011-11-21 18:54:59 Re: Supply Chain Calcs