| From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
|---|---|
| To: | Tommy Gildseth <tommy(dot)gildseth(at)usit(dot)uio(dot)no> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Text search with ispell |
| Date: | 2009-01-27 16:37:33 |
| Message-ID: | Pine.LNX.4.64.0901271921580.9554@sn.sai.msu.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, 27 Jan 2009, Tommy Gildseth wrote:
>> sorry, I don't know norwegian, what do you mean ? Did you complain that
>> no_ispell doesn't recognize these words ?
>
> Yes, I'm sorry, I should have explained better.
> The words hemsedalsdans, hengesmykke and l?rdalsbrua, are "concatenations" of
> the words Hemsedal and dans, henge and smykke and L?rdal and bru. Hemsedal
> and L?rdal are in fact geographic names, so I'm not sure it would handle that
> at all anyway. Both parts of the word, hengesmykke, is in the dictionary
> though, ie. both henge and smykke. It seems that some words it is able to
> properly spilt, and then some it doesn't recognise.
you may improve dictionary, affix file should have
COMPOUNDFLAG z
dict file should contain 'henge', 'smykke' with that flag 'z'.
Where did you get dictionary ?
>
> The problem I'm trying to work around, is that as far as I can tell, tsearch
> doesn't support truncation, ie. searching for "*smykke" or "hemsedal*" etc.
8.4 version will support prefix search "hemsedal*".
But you could always write your own dictionary or just use dict_xsyn
dictionary for such kinds exceptions.
http://www.postgresql.org/docs/8.3/static/dict-xsyn.html
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gabi Julien | 2009-01-27 17:33:20 | Hot standby |
| Previous Message | Devrim GÜNDÜZ | 2009-01-27 16:29:01 | Re: Serial Jumping |