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
charmap test using api
[idzebra-moved-to-github.git]
/
test
/
api
/
xpath5.c
diff --git
a/test/api/xpath5.c
b/test/api/xpath5.c
index
1262caa
..
aa20a3d
100644
(file)
--- a/
test/api/xpath5.c
+++ b/
test/api/xpath5.c
@@
-1,7
+1,5
@@
-
-
-/* $Id: xpath5.c,v 1.1 2004-11-01 11:45:39 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
+/* $Id: xpath5.c,v 1.4 2004-12-02 11:28:20 adam Exp $
+ Copyright (C) 2003,2004
Index Data Aps
This file is part of the Zebra server.
Index Data Aps
This file is part of the Zebra server.
@@
-62,8
+60,8
@@
const char *recs[] = {
int main(int argc, char **argv)
{
ZebraService zs = start_up("zebraxpath.cfg", argc, argv);
int main(int argc, char **argv)
{
ZebraService zs = start_up("zebraxpath.cfg", argc, argv);
- ZebraHandle zh = zebra_open (zs);
- init_data(zh,recs);
+ ZebraHandle zh = zebra_open(zs);
+ init_data(zh, recs);
// yaz_log_init_level(LOG_ALL);
// yaz_log_init_level(LOG_ALL);
@@
-71,19
+69,15
@@
int main(int argc, char **argv)
ranking_query(__LINE__,zh,qry,hits,string,score)
q("@attr 1=/record/title @attr 2=102 the",
ranking_query(__LINE__,zh,qry,hits,string,score)
q("@attr 1=/record/title @attr 2=102 the",
- 3,"first title",846);
+ 3,"first title",952);
q("@attr 1=/ @attr 2=102 @or third foo",
3,"third title",802);
q("@attr 1=/ @attr 2=102 foo",
3,"second title",850);
q("@attr 1=/ @attr 2=102 @or third foo",
3,"third title",802);
q("@attr 1=/ @attr 2=102 foo",
3,"second title",850);
- /* FIXME - This query triggers bug #202 */
- /* http://bugs.index/show_bug.cgi?id=202 */
- /* it seems that the ranking does not see all occurrences */
- /* of 'foo', and thus ranks all records as high. */
- /*
+
q("@attr 1=/record/ @attr 2=102 foo",
q("@attr 1=/record/ @attr 2=102 foo",
- 3,"second title",846);
- Ø*/
+ 3,"second title",927);
+
return close_down(zh, zs, 0);
}
return close_down(zh, zs, 0);
}