changeset 11617:29178cec0506 HEAD

fts-solr: Previous change wasn't complete.
author Timo Sirainen <tss@iki.fi>
date Tue, 22 Jun 2010 22:46:11 +0100
parents 776e2d96f6bb
children 37df22ecd572
files src/plugins/fts-solr/fts-backend-solr.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/fts-solr/fts-backend-solr.c	Tue Jun 22 22:41:55 2010 +0100
+++ b/src/plugins/fts-solr/fts-backend-solr.c	Tue Jun 22 22:46:11 2010 +0100
@@ -627,10 +627,11 @@
 		i_assert(!ctx->headers);
 	}
 
-	i_assert(!ctx->field_open);
-	ctx->field_open = TRUE;
-	ctx->headers = FALSE;
-	str_append(ctx->cmd, "<field name=\"body\">");
+	if (!ctx->field_open) {
+		ctx->field_open = TRUE;
+		ctx->headers = FALSE;
+		str_append(ctx->cmd, "<field name=\"body\">");
+	}
 	return TRUE;
 }