pazpar2  1.14.1
termlists.h
Go to the documentation of this file.
1 /* This file is part of Pazpar2.
2  Copyright (C) Index Data
3 
4 Pazpar2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8 
9 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 
18 */
19 
20 #ifndef TERMLISTS_H
21 #define TERMLISTS_H
22 
23 #include <yaz/nmem.h>
24 
26 {
27  char *norm_term;
28  char *display_term;
29  char *id;
30  int frequency;
31 };
32 
33 struct termlist;
34 
35 struct termlist *termlist_create(NMEM nmem);
36 void termlist_insert(struct termlist *tl, const char *display_term,
37  const char *norm_term,
38  const char *id, size_t id_len, int freq);
39 struct termlist_score **termlist_highscore(struct termlist *tl, int *len,
40  NMEM nmem);
41 
42 #endif
43 
44 /*
45  * Local variables:
46  * c-basic-offset: 4
47  * c-file-style: "Stroustrup"
48  * indent-tabs-mode: nil
49  * End:
50  * vim: shiftwidth=4 tabstop=8 expandtab
51  */
52 
char * norm_term
Definition: termlists.h:27
char * display_term
Definition: termlists.h:28
NMEM nmem
Definition: termlists.c:49
struct termlist_score ** termlist_highscore(struct termlist *tl, int *len, NMEM nmem)
Definition: termlists.c:109
void termlist_insert(struct termlist *tl, const char *display_term, const char *norm_term, const char *id, size_t id_len, int freq)
Definition: termlists.c:64
struct termlist * termlist_create(NMEM nmem)
Definition: termlists.c:52