Unix Technical Forum

Re: [GENERAL] Fragments in tsearch2 headline

This is a discussion on Re: [GENERAL] Fragments in tsearch2 headline within the pgsql Hackers forums, part of the PostgreSQL category; --> > stucked with the function LexizeExec which I do not totally understand > (... and is not well documents ...


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 05-24-2008, 07:11 AM
Teodor Sigaev
 
Posts: n/a
Default Re: [GENERAL] Fragments in tsearch2 headline


> stucked with the function LexizeExec which I do not totally understand
> (... and is not well documents too )


Sorry for that. LexizeExec() is a play around supporting thesaurus dictionary,
which is designed to replace phrase by phrase. So, if it see first matched word
then it asks the parse to get next word. On next word it have four options:
- asks next word
- returns substituting phrase
- says: Hey, I have a match, but it's possible to find a largest match, so
give a next word
- says about false match, so parser should return back and try next dictionary
from the begining or last match.

Now only thesaurus dictionary can work in that mode but nothing forbids to have
another dictionary with phrase recognition.

--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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 11:07 AM.


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