projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change log of retrieval of default resource
[idzebra-moved-to-github.git]
/
index
/
retrieve.c
diff --git
a/index/retrieve.c
b/index/retrieve.c
index
c342d7d
..
f0183c7
100644
(file)
--- a/
index/retrieve.c
+++ b/
index/retrieve.c
@@
-1,5
+1,5
@@
-/* $Id: retrieve.c,v 1.38 2006-04-25 13:52:38 adam Exp $
- Copyright (C) 1995-2005
+/* $Id: retrieve.c,v 1.42 2006-06-07 10:14:41 adam Exp $
+ Copyright (C) 1995-2006
Index Data ApS
This file is part of the Zebra server.
Index Data ApS
This file is part of the Zebra server.
@@
-145,7
+145,7
@@
int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score,
while(zebra_rec_keys_read(keys, &str, &slen, &key_in))
{
int i;
while(zebra_rec_keys_read(keys, &str, &slen, &key_in))
{
int i;
- int ord = key_in.mem[0];
+ int ord = CAST_ZINT_TO_INT(key_in.mem[0]);
int index_type;
const char *db = 0;
int set = 0;
int index_type;
const char *db = 0;
int set = 0;
@@
-153,9
+153,8
@@
int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score,
const char *string_index = 0;
char dst_buf[IT_MAX_WORD];
const char *string_index = 0;
char dst_buf[IT_MAX_WORD];
- zebraExplain_lookup_ord (zh->reg->zei, ord,
- &index_type, &db,
- &set, &use, &string_index);
+ zebraExplain_lookup_ord(zh->reg->zei, ord, &index_type, &db,
+ &string_index);
if (string_index)
wrbuf_printf(wrbuf, "%s", string_index);
if (string_index)
wrbuf_printf(wrbuf, "%s", string_index);
@@
-253,6
+252,7
@@
int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score,
}
}
retrieveCtrl.localno = sysno;
}
}
retrieveCtrl.localno = sysno;
+ retrieveCtrl.staticrank = recordAttr->staticrank;
retrieveCtrl.score = score;
retrieveCtrl.recordSize = recordAttr->recordSize;
retrieveCtrl.odr = stream;
retrieveCtrl.score = score;
retrieveCtrl.recordSize = recordAttr->recordSize;
retrieveCtrl.odr = stream;
@@
-319,3
+319,11
@@
int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score,
*addinfo = retrieveCtrl.addinfo;
return retrieveCtrl.diagnostic;
}
*addinfo = retrieveCtrl.addinfo;
return retrieveCtrl.diagnostic;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+