summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/dict_ispell.c
Commit message (Collapse)AuthorAgeFilesLines
* For some reason access/tupmacs.h has been #including utils/memutils.h,Tom Lane2005-05-061-4/+2
| | | | | | | which is neither needed by nor related to that header. Remove the bogus inclusion and instead include the header in those C files that actually need it. Also fix unnecessary inclusions and bad inclusion order in tsearch2 files.
* improve support of agglutinative languages (query with compound words).Teodor Sigaev2005-01-251-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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;
* Solve the 'Turkish problem' with undesirable locale behavior for caseTom Lane2004-05-071-3/+3
| | | | | | | | | | | | | conversion of basic ASCII letters. Remove all uses of strcasecmp and strncasecmp in favor of new functions pg_strcasecmp and pg_strncasecmp; remove most but not all direct uses of toupper and tolower in favor of pg_toupper and pg_tolower. These functions use the same notions of case folding already developed for identifier case conversion. I left the straight locale-based folding in place for situations where we are just manipulating user data and not trying to match it to built-in strings --- for example, the SQL upper() function is still locale dependent. Perhaps this will prove not to be what's wanted, but at the moment we can initdb and pass regression tests in Turkish locale.
* Optimize. Improve ispell support for compound words. This work was sponsored ↵Teodor Sigaev2003-11-171-6/+6
| | | | by ABC Startsiden AS.
* pgindent run.Bruce Momjian2003-08-041-65/+97
|
* Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane2003-07-241-10/+33
|
* tsearch2 moduleTeodor Sigaev2003-07-211-0/+141