History log of /dovecot/src/plugins/fts-lucene/Snowball.cc
Revision Date Author Comments Expand
c147bff818798a979d93537f72f5c1f68f5d5ba8 24-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

global: Use t_buffer_create sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g'

/dovecot/src/auth/auth-policy.c /dovecot/src/auth/auth-request-handler.c /dovecot/src/auth/auth-request-stats.c /dovecot/src/auth/db-checkpassword.c /dovecot/src/auth/password-scheme-scram.c /dovecot/src/auth/password-scheme.c /dovecot/src/config/old-set-parser.c /dovecot/src/doveadm/client-connection-tcp.c /dovecot/src/doveadm/doveadm-fs.c /dovecot/src/doveadm/dsync/dsync-mailbox-state.c /dovecot/src/imap-login/client-authenticate.c /dovecot/src/lib-compression/test-compression.c /dovecot/src/lib-dcrypt/dcrypt-openssl.c /dovecot/src/lib-dcrypt/istream-decrypt.c /dovecot/src/lib-dcrypt/ostream-encrypt.c /dovecot/src/lib-dcrypt/test-crypto.c /dovecot/src/lib-dict-backend/dict-sql.c /dovecot/src/lib-imap-client/imapc-connection.c /dovecot/src/lib-imap/imap-url.c /dovecot/src/lib-index/mail-cache-fields.c /dovecot/src/lib-index/mail-cache-lookup.c /dovecot/src/lib-index/mail-cache-transaction.c /dovecot/src/lib-index/mail-index-sync-keywords.c /dovecot/src/lib-index/mail-index-transaction-export.c /dovecot/src/lib-index/mail-index-view-sync.c /dovecot/src/lib-index/mail-transaction-log-file.c /dovecot/src/lib-mail/test-istream-binary-converter.c /dovecot/src/lib-mail/test-ostream-dot.c /dovecot/src/lib-mail/test-quoted-printable.c /dovecot/src/lib-master/master-auth.c /dovecot/src/lib-sql/driver-test.c /dovecot/src/lib-storage/index/index-mail-binary.c /dovecot/src/lib-storage/index/index-mail-headers.c /dovecot/src/lib-storage/index/index-mail.c /dovecot/src/lib-storage/index/index-storage.c /dovecot/src/lib-storage/index/maildir/maildir-uidlist.c /dovecot/src/lib-storage/index/mbox/mbox-save.c /dovecot/src/lib-storage/list/mailbox-list-index-sync.c /dovecot/src/lib-storage/mail-search.c /dovecot/src/lib/base32.c /dovecot/src/lib/base64.c /dovecot/src/lib/hash-method.c /dovecot/src/lib/hmac.c /dovecot/src/lib/pkcs5.h /dovecot/src/lib/test-buffer.c /dovecot/src/lib/test-hex-binary.c /dovecot/src/lib/test-iostream-pump.c /dovecot/src/lib/test-numpack.c /dovecot/src/lib/test-ostream-failure-at.c /dovecot/src/login-common/client-common.c /dovecot/src/login-common/sasl-server.c /dovecot/src/plugins/acl/acl-cache.c Snowball.cc /dovecot/src/plugins/imap-stats/imap-stats-plugin.c /dovecot/src/plugins/mail-crypt/mail-crypt-global-key.c /dovecot/src/plugins/mail-crypt/test-mail-global-key.c /dovecot/src/plugins/mail-crypt/test-mail-key.c /dovecot/src/plugins/pop3-migration/pop3-migration-plugin.c /dovecot/src/plugins/stats/mail-stats-connection.c /dovecot/src/plugins/virtual/virtual-sync.c /dovecot/src/pop3-login/client-authenticate.c /dovecot/src/stats/mail-command.c /dovecot/src/stats/mail-session.c /dovecot/src/stats/mail-user.c /dovecot/src/util/script.c
6e4f7451b33b3aaeededd27d164f878b2b72a499 13-Jun-2014 Phil Carmody <phil@dovecot.fi>

fts-lucene: Fix SnowballAnalyzer constructors Coverity found the uninitialised pointers in the latter constructor (which is never used - kill it?). In comparing the other constructor, the lack of strdup() jumped out at me. In fixing them both I migrated them to actual C++ initialisers, rather than dumb assignments to uninitialised members. Also migrated to dovecot's i_* functions. Also fixed indentation for the 3 functions touched. Signed-off-by: Phil Carmody <phil@dovecot.fi>

6dbe040bde3fe1181598ef2f43dff1ffad24773b 18-Sep-2012 Timo Sirainen <tss@iki.fi>

fts-lucene: Added "normalize" option to put data through user's normalizer function.

88b9f9eb91da632d3e941fe4276f8ace03205b25 15-Sep-2012 Timo Sirainen <tss@iki.fi>

fts-lucene: Added "normalize" option to put data through normalize().

3281669db44d09a087a203201248abbc81b3cc1a 06-Sep-2012 Timo Sirainen <tss@iki.fi>

Renamed buffer_create_*data() to buffer_create_from_*data() for consistency. Especially i_stream_create_from_data() was a very similar function, which made it difficult to remember which one should have "from" and which one shouldn't.

/dovecot/src/auth/auth-master-connection.c /dovecot/src/auth/mech-digest-md5.c /dovecot/src/imap/main.c /dovecot/src/lib-index/mail-index-modseq.c /dovecot/src/lib-index/mail-index-sync-keywords.c /dovecot/src/lib-index/mail-index-transaction-export.c /dovecot/src/lib-index/mail-transaction-log-append.c /dovecot/src/lib-index/mail-transaction-log-file.c /dovecot/src/lib-index/mail-transaction-log-view.c /dovecot/src/lib-mail/istream-binary-converter.c /dovecot/src/lib-mail/istream-qp-decoder.c /dovecot/src/lib-mail/test-message-header-encode.c /dovecot/src/lib-otp/otp-parse.c /dovecot/src/lib-storage/index/index-mail.c /dovecot/src/lib-storage/index/maildir/maildir-save.c /dovecot/src/lib-storage/mail.c /dovecot/src/lib/askpass.c /dovecot/src/lib/buffer.c /dovecot/src/lib/buffer.h /dovecot/src/lib/guid.c /dovecot/src/lib/iostream-rawlog.c /dovecot/src/lib/istream-base64-decoder.c /dovecot/src/lib/istream-base64-encoder.c /dovecot/src/lib/str.c /dovecot/src/login-common/sasl-server.c Snowball.cc fts-backend-lucene.c lucene-wrapper.cc /dovecot/src/plugins/fts/fts-expunge-log.c /dovecot/src/pop3-login/client.c /dovecot/src/pop3/main.c
920f6ee17b0c4aaa98e0043a575655eb84fc01a4 23-Aug-2011 Timo Sirainen <tss@iki.fi>

fts-lucene: Fixed memory leak in snowball analyzer.

c8296ac1ed68ed5c5168de545b76f9b27fc76d35 09-Aug-2011 Timo Sirainen <tss@iki.fi>

fts-lucene: Added initial support for language detection and stemming. This requires textcat and snowball (libstemmer) libraries. This can be enabled by setting: fts_lucene = textcat_dir=/usr/share/libtextcat \ textcat_conf=/etc/dovecot/textcat.conf I'm not yet sure how good of an idea it is to actually use this, so it needs some testing.. For example how bad is it if language is detected incorrectly?