a754c3be2b1e00fe42ecdb6b068d444be0030420 |
|
22-Aug-2016 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
lib-fts: Add max_length to common filter struct. Reorder fields.
The latter is for for imaginary alignment enhancements. |
440b625484f3cc9d3ec0a7ba36fe3583aa90172d |
|
31-Aug-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
lib-fts: Add prefixing contraction filter.
Filters away prefixing contracted words, e.g. "l'homme" -> "homme".
Tokens to be filtered must be lower case. Only supports French in
this initial version. |
be7085921228e1c1333dbf7aa2daca41115c3f23 |
|
02-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib-fts: fts-filter API changed to have a non-pointer vfuncs variable.
The main benefit being that the fts-filter implementations can save a few
lines of code. |
887b04f7b235dbc18a5f787ac95ddc86e653ab6f |
|
02-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib-fts: Added string_t *token to struct fts_filter
This makes the work a bit easier for simple filters that don't need any
state but want to use a string_t. |
3e462730eb79d8a7289edc138cf80cf79a737268 |
|
02-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib-fts: Include fts-filter.h in fts-filter-private.h
This avoids having to always include them both. |
88f5dbec21b26b80371961d5d6320bb2aa92384c |
|
02-Jun-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
lib-fts: Correct comment in filter internal API. |
61eb91ed6d69e2e4c4ce0c9231244af37b5fe075 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-fts: Removed supports() function from filter API
I think the original idea was that this could be used to automatically
create filters for many languages, but this probably won't be needed or
wanted. |
6111370718708a3a966c60a1941ea303a4e0c759 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-fts: Changed filter's internal APIs to return error_r directly.
It's not very safe to store strings allocated from data stack to any
permanent structs. |
1d0f568e26ce5cbf18cd7bb335c6eea20a7e3770 |
|
09-May-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
fts: Improve filter error handling.
In lib-fts:
Move error storage to the generic filter struct level. Change make_utf8
helper to void also.
In fts:
Add the error argument to _filter() calls. |
db090e2a48bcc5ce162af0c36eef04407421379d |
|
09-May-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
fts: Change filter API to be able to return errors
Modify fts_filter_filter() to return integer status codes. It returns
1 if a token was returned, 0 if it was filtered away and -1 on error. |
c865b0e9c65fd77f7b2ab6f8616d3def5501ecb3 |
|
20-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
Initial import for lib-fts.
Parts of what this code does was already implemented internally by
fts-lucene. lib-fts is intended to be usable for all the FTS backends. The
APIs are still going to change a bit, but hopefully not after v2.2.17
release.
Mostly written by Teemu Huovila. |