From: Adam Dickmeiss Date: Mon, 27 Nov 2006 09:17:01 +0000 (+0000) Subject: Disable hit snippets for now. It does not work well and it slows retrieval X-Git-Tag: ZEBRA.2.0.6~8 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=f064c8e9a0d96ef7a0ab489034c59b21d1c37f84 Disable hit snippets for now. It does not work well and it slows retrieval down a lot. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index d8857c1..709e291 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.234 2006-11-21 22:17:49 adam Exp $ +/* $Id: zebraapi.c,v 1.235 2006-11-27 09:17:01 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -1066,9 +1066,12 @@ ZEBRA_RES zebra_records_retrieve(ZebraHandle zh, ODR stream, int len = 0; zebra_snippets *hit_snippet = zebra_snippets_create(); + /* we disable hit snippets for now. It does not work well + and it slows retrieval down a lot */ +#if 0 zebra_snippets_hit_vector(zh, setname, poset[i].sysno, hit_snippet); - +#endif recs[i].errCode = zebra_record_fetch(zh, poset[i].sysno, poset[i].score, hit_snippet,