diff src/lib-storage/index/index-search.c @ 4942:b382b21409b5 HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Dec 2006 23:26:36 +0200
parents ff2272c228cc
children a959d4208b54
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c	Wed Dec 20 22:47:02 2006 +0200
+++ b/src/lib-storage/index/index-search.c	Wed Dec 20 23:26:36 2006 +0200
@@ -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);