From f61b6ca2619d1ec14bdfca81f8a978d4e1db70d3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 11 Jun 2007 12:08:23 +0000 Subject: [PATCH] Set termlist highscore to 25. It took an hour to figure out why command=termlist&num=20 did NOT work! --- src/logic.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/logic.c b/src/logic.c index 4b6baf5..c9a0f67 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1,4 +1,4 @@ -/* $Id: logic.c,v 1.39 2007-06-11 12:02:48 adam Exp $ +/* $Id: logic.c,v 1.40 2007-06-11 12:08:23 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -72,6 +72,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "settings.h" #include "normalize7bit.h" +#define TERMLIST_HIGH_SCORE 25 + #define MAX_CHUNK 15 // Note: Some things in this structure will eventually move to configuration @@ -143,7 +145,8 @@ static void add_facet(struct session *s, const char *type, const char *value) s->termlists[i].name = nmem_strdup(s->nmem, type); s->termlists[i].termlist - = termlist_create(s->nmem, s->expected_maxrecs, 15); + = termlist_create(s->nmem, s->expected_maxrecs, + TERMLIST_HIGH_SCORE); s->num_termlists = i + 1; } termlist_insert(s->termlists[i].termlist, value); -- 1.7.10.4