X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=test%2Fapi%2Fxpath5.c;h=1a102a6becb3af82979b3044f84d0735a6a25c11;hb=aeec4f7621ec859c72b789bb4c515303ea8a8dbf;hp=b5259896948b694f12cbe7e651f94f156e7a0f80;hpb=fc94f3546d759ddb144f879ca9e6fa60f13df292;p=idzebra-moved-to-github.git diff --git a/test/api/xpath5.c b/test/api/xpath5.c index b525989..1a102a6 100644 --- a/test/api/xpath5.c +++ b/test/api/xpath5.c @@ -1,6 +1,6 @@ -/* $Id: xpath5.c,v 1.2 2004-11-01 16:09:05 heikki Exp $ +/* $Id: xpath5.c,v 1.3 2004-11-05 17:44:32 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -71,21 +71,15 @@ int main(int argc, char **argv) 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); -#if 0 - /* 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", - 3,"second title",846); -#endif + 3,"second title",927); return close_down(zh, zs, 0); }