X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fidzebra%2Fsnippet.h;h=d64803aab89f78b1b615fe5ba36ae27f88cfa1a9;hb=852c2d471176b3f597b6b2a328a3c6eba0965ad3;hp=e778e3cfe3c9986aed18cb6a967d3ea57b5b4654;hpb=94bf7abfff6a30fab5567d8275db14122ed01822;p=idzebra-moved-to-github.git diff --git a/include/idzebra/snippet.h b/include/idzebra/snippet.h index e778e3c..d64803a 100644 --- a/include/idzebra/snippet.h +++ b/include/idzebra/snippet.h @@ -1,4 +1,4 @@ -/* $Id: snippet.h,v 1.1 2005-06-07 11:36:38 adam Exp $ +/* $Id: snippet.h,v 1.3 2005-08-18 19:20:37 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -29,6 +29,7 @@ YAZ_BEGIN_CDECL struct zebra_snippet_word { zint seqno; + int reg_type; int ord; char *term; int match; @@ -38,15 +39,30 @@ struct zebra_snippet_word { typedef struct zebra_snippets zebra_snippets; typedef struct zebra_snippet_word zebra_snippet_word; +YAZ_EXPORT zebra_snippets *zebra_snippets_create(); + +YAZ_EXPORT void zebra_snippets_destroy(zebra_snippets *l); + +YAZ_EXPORT void zebra_snippets_append(zebra_snippets *l, - zint seqno, int ord, const char *term); + zint seqno, int reg_type, + int ord, const char *term); + +YAZ_EXPORT void zebra_snippets_append_match(zebra_snippets *l, - zint seqno, int ord, const char *term, + zint seqno, int reg_type, + int ord, const char *term, int match); + +YAZ_EXPORT zebra_snippet_word *zebra_snippets_list(zebra_snippets *l); + +YAZ_EXPORT void zebra_snippets_log(zebra_snippets *l, int log_level); + +YAZ_EXPORT zebra_snippets *zebra_snippets_window(zebra_snippets *doc, zebra_snippets *hit, int window_size);