[dovecot-cvs] dovecot/src/lib-storage/index index-search.c, 1.122, 1.123
tss at dovecot.org
tss at dovecot.org
Wed Dec 20 21:26:39 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv1604/lib-storage/index
Modified Files:
index-search.c
Log Message:
Added support for X-BODY-FAST and X-TEXT-FAST SEARCH arguments. FTS plugin
now allows loading two backends: exact and fast. Fast backend (Lucene) can
be used to optimize only those searches, while exact backend (Squat) can be
used to optimize normal BODY and TEXT searches as well.
Index: index-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-search.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- index-search.c 20 Dec 2006 19:23:44 -0000 1.122
+++ index-search.c 20 Dec 2006 21:26:36 -0000 1.123
@@ -468,8 +468,15 @@
if (ctx->index_ctx->error != NULL)
return;
- if (arg->type != SEARCH_TEXT && arg->type != SEARCH_BODY)
+ switch (arg->type) {
+ case SEARCH_BODY:
+ case SEARCH_BODY_FAST:
+ case SEARCH_TEXT:
+ case SEARCH_TEXT_FAST:
+ break;
+ default:
return;
+ }
__retry:
i_stream_seek(ctx->input, 0);
More information about the dovecot-cvs
mailing list