Unix Technical Forum

gendict and tsearch2

This is a discussion on gendict and tsearch2 within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi All, I'm trying to generate italian dictionary templates for tsearch2 without success. These are the steps I do: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 07:00 AM
Andrea C. Granata
 
Posts: n/a
Default gendict and tsearch2

Hi All,

I'm trying to generate italian dictionary templates for tsearch2
without success.

These are the steps I do:

1) cd PGSQL_SRC/contrib/tsearch2/gendict
wget http://snowball.tartarus.org/algorithms/italian/stem.c
wget http://snowball.tartarus.org/algorithms/italian/stem.h
../config.sh -n it -s -p italian_ISO_8859_1 -v -C'Snowball stemmer for
Italian'

output:

Dictname: 'it'
Snowball stemmer: yes
Has init method: yes
Function prefix: italian_ISO_8859_1
Source files: stem.c
Header files: stem.h
Object files: stem.o dict_snowball.o
Comment: 'Snowball stemmer for Italian'
Directory: ../../dict_it
Build directory... ok
Build Makefile... ok
Build dict_it.sql.in... ok
Copy source and header files... ok
Build sub-include header... ok
Build Snowball stemmer... ok
Build README.it... ok
All is done

2)

cd PGSQL_SRC/dict_it
Make

output:

stem.c: In function 'italian_ISO_8859_1_close_env':
stem.c:1104: error: too many arguments to function 'SN_close_env'
make: *** [stem.o] Error 1

Any hint?

Thanks,
Andrea.




---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 07:00 AM
Oleg Bartunov
 
Posts: n/a
Default Re: gendict and tsearch2

You need patch from
http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
to get updated snowball API.

Oleg
On Fri, 15 Dec 2006, Andrea C. Granata wrote:

> Hi All,
>
> I'm trying to generate italian dictionary templates for tsearch2 without
> success.
>
> These are the steps I do:
>
> 1) cd PGSQL_SRC/contrib/tsearch2/gendict
> wget http://snowball.tartarus.org/algorithms/italian/stem.c
> wget http://snowball.tartarus.org/algorithms/italian/stem.h
> ./config.sh -n it -s -p italian_ISO_8859_1 -v -C'Snowball stemmer for
> Italian'
>
> output:
>
> Dictname: 'it'
> Snowball stemmer: yes
> Has init method: yes
> Function prefix: italian_ISO_8859_1
> Source files: stem.c
> Header files: stem.h
> Object files: stem.o dict_snowball.o
> Comment: 'Snowball stemmer for Italian'
> Directory: ../../dict_it
> Build directory... ok
> Build Makefile... ok
> Build dict_it.sql.in... ok
> Copy source and header files... ok
> Build sub-include header... ok
> Build Snowball stemmer... ok
> Build README.it... ok
> All is done
>
> 2)
>
> cd PGSQL_SRC/dict_it
> Make
>
> output:
>
> stem.c: In function 'italian_ISO_8859_1_close_env':
> stem.c:1104: error: too many arguments to function 'SN_close_env'
> make: *** [stem.o] Error 1
>
> Any hint?
>
> Thanks,
> Andrea.
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>


Regards,
Oleg
__________________________________________________ ___________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com