X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fretrieve.c;h=08257c4632e7917b0307cd60a6e6a026ef375e89;hb=7f02bad575a64004a3a0122a99666afd41dd8966;hp=8dbe8a55a8e85623ea47c36d089b31c03a73cee9;hpb=94bf7abfff6a30fab5567d8275db14122ed01822;p=idzebra-moved-to-github.git diff --git a/index/retrieve.c b/index/retrieve.c index 8dbe8a5..08257c4 100644 --- a/index/retrieve.c +++ b/index/retrieve.c @@ -1,4 +1,4 @@ -/* $Id: retrieve.c,v 1.31 2005-06-07 11:36:38 adam Exp $ +/* $Id: retrieve.c,v 1.35 2005-08-26 10:13:31 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -27,7 +27,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifdef WIN32 #include #include -#else +#endif +#if HAVE_UNISTD_H #include #endif @@ -225,19 +226,21 @@ int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score, zebra_snippets_rec_keys(zh, &reckeys, retrieveCtrl.doc_snippet); - +#if 0 + /* for debugging purposes */ yaz_log(YLOG_LOG, "DOC SNIPPET:"); zebra_snippets_log(retrieveCtrl.doc_snippet, YLOG_LOG); yaz_log(YLOG_LOG, "HIT SNIPPET:"); zebra_snippets_log(retrieveCtrl.hit_snippet, YLOG_LOG); - +#endif snippet = zebra_snippets_window(retrieveCtrl.doc_snippet, retrieveCtrl.hit_snippet, 10); - +#if 0 + /* for debugging purposes */ yaz_log(YLOG_LOG, "WINDOW SNIPPET:"); zebra_snippets_log(snippet, YLOG_LOG); - +#endif (*rt->retrieve)(clientData, &retrieveCtrl); zebra_snippets_destroy(snippet);