Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16:/tmp/cvs-serv17024/modules/pftijah

Modified Files:
        nexi.c pftijah.mx 
Log Message:
- add first pftijah information function:
  tijah:ft-index-info ( [string*] ) as element()*
  We are still discussing how to present the ft-index/collection dependencies.

- untangle ft-index/global tag/term dictionary structure in preparation of the
  private tag/term dictionaries which we are planning to make.



Index: nexi.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/nexi.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- nexi.c      4 Apr 2007 13:52:05 -0000       1.56
+++ nexi.c      27 Apr 2007 13:36:10 -0000      1.57
@@ -493,7 +493,7 @@
 #if 0
     MILPRINTF(MILOUT, "retNum := %d;\n", retNum);
 #endif
-    MILPRINTF(MILOUT, "var stemmer := bat(\"tj_\"+ collName 
+\"_param\").find(\"stemmer\");\n");
+    MILPRINTF(MILOUT, "var stemmer := bat(\"tj_\"+ GLOBAL_COLLNAME 
+\"_param\").find(\"stemmer\");\n");
     if (strcmp(background_collection,""))
     { MILPRINTF(MILOUT, "tj_setBackgroundCollName(\"%s\");\n", 
background_collection); }
     

Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- pftijah.mx  4 Apr 2007 13:52:05 -0000       1.115
+++ pftijah.mx  27 Apr 2007 13:36:10 -0000      1.116
@@ -175,8 +175,9 @@
 
 const ENTITY_NUM := 10000;
 
-var collName := "DFLT_FT_INDEX";
-var background_collName := "DFLT_FT_INDEX";
+# WARNING: this var is also used by nexi.c and milprint_summer.c
+var GLOBAL_COLLNAME := "DFLT_FT_INDEX";
+var background_GLOBAL_COLLNAME := "DFLT_FT_INDEX";
 var collHeight := 10;
 var retNum := 100;
 
[...1656 lines suppressed...]
-#      var res := new(void,bat);
-#      res.append(iter);
-#      res.append(item);
-#      res.append(frag);
-#      res.append(score);
-#      return res;
-#}
-
 # align_frag assumes the following variable to be global to its scope:
 # frag, kind, ipik, ws
 # StM: 
@@ -2974,7 +3065,7 @@
 # If so, it should be removed from the code base!
 PROC align_frag() : void :=
 {
-       var needed_docs := bat("tj_" + collName + 
"_doc_name").semijoin(frag.tunique());
+       var needed_docs := bat("tj_" + GLOBAL_COLLNAME + 
"_doc_name").semijoin(frag.tunique());
        var loaded_docs := ws.fetch(DOC_LOADED).reverse();
        var docs_to_load := 
kdiff(needed_docs.reverse(),loaded_docs).hmark([EMAIL PROTECTED]);
        ws_opendoc(ws, docs_to_load);


-------------------------------------------------------------------------
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

Reply via email to