Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14608
Modified Files:
pftijah.mx
Log Message:
* repair bug where //* in NEXI queries also included the top document node
Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- pftijah.mx 30 May 2007 15:06:36 -0000 1.130
+++ pftijah.mx 31 May 2007 09:54:49 -0000 1.131
@@ -1451,8 +1451,11 @@
PROC select_node(BAT[oid,str] qenv) : bat[oid,dbl] :=
{
# The table pfpre only stores element nodes, so we can use it as a filter:
- var pfpre := bat( "tj_" + qenv.find(QENV_FTINAME) + "_pfpre");
+ var pfpre := bat( "tj_" + qenv.find(QENV_FTINAME) + "_pfpre");
+ var firstpre := bat( "tj_" + qenv.find(QENV_FTINAME) + "_doc_firstpre");
+ # filter out the top document nodes which have no 'tag'
+ pfpre := pfpre.kdiff(firstpre.reverse());
return pfpre.project( dbl(qenv.find(QENV_SCOREBASE) ) );
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins