postgresql/contrib/tsearch2/ispell
Teodor Sigaev 324300bc7c improve support of agglutinative languages (query with compound words).
regression=# select to_tsquery( '\'fotballklubber\'');
                   to_tsquery
------------------------------------------------
 'fotball' & 'klubb' | 'fot' & 'ball' & 'klubb'
(1 row)

So, changed interface to dictionaries, lexize method of dictionary shoud return
pointer to aray of TSLexeme structs instead of char**. Last element should
have TSLexeme->lexeme == NULL.

typedef struct {
        /* number of variant of split word , for example
                Word 'fotballklubber' (norwegian) has two varian to split:
                ( fotball, klubb ) and ( fot, ball, klubb ). So, dictionary
                should return:
                nvariant        lexeme
                1               fotball
                1               klubb
                2               fot
                2               ball
                2               klubb

        */
        uint16  nvariant;

        /* currently unused */
        uint16  flags;

        /* C-string */
        char    *lexeme;
} TSLexeme;
2005-01-25 15:24:38 +00:00
..
Makefile 1 Fix affixes with void replacement (AFAIK, it's only russian) 2004-06-23 11:06:11 +00:00
regis.c Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
regis.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
spell.c improve support of agglutinative languages (query with compound words). 2005-01-25 15:24:38 +00:00
spell.h improve support of agglutinative languages (query with compound words). 2005-01-25 15:24:38 +00:00