IDZEBRA 2.2.8
snippet.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18*/
19
20#ifndef IDZEBRA_SNIPPET_H
21#define IDZEBRA_SNIPPET_H
22
23#include <idzebra/util.h>
24
25YAZ_BEGIN_CDECL
26
37
40
41YAZ_EXPORT
43
44YAZ_EXPORT
46
47YAZ_EXPORT
49 zint seqno, int ws, int ord, const char *term);
50
51YAZ_EXPORT
53 zint seqno, int ws, int ord,
54 const char *term, size_t term_len);
55
56YAZ_EXPORT
58 zint seqno, int ws, int ord,
59 const char *term, size_t term_len,
60 int match);
61
62YAZ_EXPORT
64
65YAZ_EXPORT
67
68YAZ_EXPORT
69void zebra_snippets_log(const zebra_snippets *l, int log_level, int all);
70
71YAZ_EXPORT
73 const zebra_snippets *hit,
74 int window_size);
75
76YAZ_EXPORT
78 int before, int after);
79
80
81YAZ_EXPORT
83 const zebra_snippets *doc, const zebra_snippets *hit);
84
85YAZ_END_CDECL
86
87#endif
88/*
89 * Local variables:
90 * c-basic-offset: 4
91 * c-file-style: "Stroustrup"
92 * indent-tabs-mode: nil
93 * End:
94 * vim: shiftwidth=4 tabstop=8 expandtab
95 */
96
static int log_level
Definition flock.c:82
const zebra_snippet_word * zebra_snippets_constlist(const zebra_snippets *l)
Definition snippet.c:99
zebra_snippets * zebra_snippets_window(const zebra_snippets *doc, const zebra_snippets *hit, int window_size)
Definition snippet.c:121
void zebra_snippets_append_match(zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len, int match)
Definition snippet.c:65
void zebra_snippets_appendn(zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len)
Definition snippet.c:57
zebra_snippet_word * zebra_snippets_list(zebra_snippets *l)
Definition snippet.c:94
void zebra_snippets_log(const zebra_snippets *l, int log_level, int all)
Definition snippet.c:104
void zebra_snippets_destroy(zebra_snippets *l)
Definition snippet.c:45
void zebra_snippets_append(zebra_snippets *l, zint seqno, int ws, int ord, const char *term)
Definition snippet.c:51
zebra_snippets * zebra_snippets_create(void)
Definition snippet.c:36
void zebra_snippets_ring(zebra_snippets *doc, const zebra_snippets *hit, int before, int after)
Definition snippet.c:237
const struct zebra_snippet_word * zebra_snippets_lookup(const zebra_snippets *doc, const zebra_snippets *hit)
Definition snippet.c:218
struct zebra_snippet_word * prev
Definition snippet.h:35
struct zebra_snippet_word * next
Definition snippet.h:34
long zint
Zebra integer.
Definition util.h:66