From: Adam Dickmeiss Date: Mon, 11 Jun 2007 12:08:23 +0000 (+0000) Subject: Set termlist highscore to 25. It took an hour to figure out why X-Git-Tag: PAZPAR2.1.0.0~60 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=f61b6ca2619d1ec14bdfca81f8a978d4e1db70d3;p=pazpar2-moved-to-github.git Set termlist highscore to 25. It took an hour to figure out why command=termlist&num=20 did NOT work! --- 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);