From 95a5868bb03e3445b1e234a969358b6eaa74a49c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 3 Dec 2007 13:34:17 +0000 Subject: [PATCH] Omit first-in-field index terms for facets --- index/retrieve.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index/retrieve.c b/index/retrieve.c index d3928d9..3e50ae5 100644 --- a/index/retrieve.c +++ b/index/retrieve.c @@ -1,4 +1,4 @@ -/* $Id: retrieve.c,v 1.78 2007-12-03 13:04:04 adam Exp $ +/* $Id: retrieve.c,v 1.79 2007-12-03 13:34:17 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -777,7 +777,8 @@ static ZEBRA_RES facet_fetch(ZebraHandle zh, const char *setname, i++, spec = spec->next) { int ord = CAST_ZINT_TO_INT(key_in.mem[0]); - if (ord == ord_array[i]) + if (ord == ord_array[i] && + str[0] != FIRST_IN_FIELD_CHAR) { int *freq; zebra_strmap_t sm = map_array[i]; -- 1.7.10.4