1 /* $Id: relevance.h,v 1.5 2007-04-23 21:05:23 adam Exp $
2 Copyright (c) 2006-2007, Index Data.
4 This file is part of Pazpar2.
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 #include <yaz/yaz-util.h>
28 struct record_cluster;
31 struct relevance *relevance_create(NMEM nmem, const char **terms, int numrecs);
32 void relevance_newrec(struct relevance *r, struct record_cluster *cluster);
33 void relevance_countwords(struct relevance *r, struct record_cluster *cluster,
34 const char *words, int multiplier);
35 void relevance_donerecord(struct relevance *r, struct record_cluster *cluster);
37 void relevance_prepare_read(struct relevance *rel, struct reclist *rec);
44 * indent-tabs-mode: nil
46 * vim: shiftwidth=4 tabstop=8 expandtab