Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14563/compiler/mil

Modified Files:
      Tag: M5XQ
        milprint_summer.c 
Log Message:
propagated changes of Thursday Nov 05 2009 - Monday Nov 09 2009
from the development trunk to the M5XQ branch

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/11/05 - singhan: compiler/mil/milprint_summer.c,1.434
  XQuery full-text search support initial version!
  
  This initial version provides support to
  
  -ftcontains keyword,
  
  e.g., for $f in doc("menu.xml")//food[./name ftcontains "Belgian Waffles"]
  return $f
  The above query will return all the food nodes that has some relevancy over 
"Belgian Waffles"
  
  -initial score variable support
  
  e.g., for $f score $s in doc("menu.xml")//food[./name ftcontains "Belgian 
Waffles"]
  return $s
  The above query will return the relevancy score of all the matched food 
nodes, however since its an initial version, the support to this score variable 
is very limited.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: milprint_summer.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milprint_summer.c,v
retrieving revision 1.432.2.1
retrieving revision 1.432.2.2
diff -u -d -r1.432.2.1 -r1.432.2.2
--- milprint_summer.c   7 May 2009 14:46:59 -0000       1.432.2.1
+++ milprint_summer.c   9 Nov 2009 00:04:29 -0000       1.432.2.2
@@ -8379,7 +8379,7 @@
           add_empty_strings (f, STR, cur_level);
           saveResult_ (f, ++counter, STR);
          str_counter = counter;
-       } 
+       }
        /* PARAMETER COMPUTATION */
        milprintf(f,
                "var pfop_query := 
tj_pfop(iter%03u.materialize(ipik%03u),item%s%03u.materialize(ipik%03u),kind%03u.materialize(ipik%03u),pos%03u.materialize(ipik%03u));\n"
@@ -8448,7 +8448,7 @@
                "    pos.append(tmp.mark(1...@0));\n"
                "} # end of query batloop \n"
                , cur_level, item_int, cur_level);
-        
+
        milprintf(f,
                 "kind := set_kind(frag, ELEM);\n"
                 "ipik := iter;\n"
@@ -8472,9 +8472,9 @@
 
         /* get node */
         rc = translate2MIL (f, code, cur_level, counter, RL(args));
-        
+
        /* get scores */
-        milprintf(f, 
+        milprintf(f,
                "var score := new(oid,dbl);\n"
                "var tmp := [<<]([lng](tijah_scoreDB.fetch(1...@0)), const 
32);\n"
                "var tijah_fragpre := [+](tmp, 
[lng](tijah_scoreDB.fetch(2...@0)));\n"
@@ -8499,7 +8499,7 @@
                "xitem := nil;\n"
                "score := score.sort().tmark(0...@0);\n"
                , item_int, counter, item_int, counter);
-       
+
        /* return score */
         item_ext = (code)?kind_str(DBL):"";
         if (code)
@@ -11434,7 +11434,7 @@
         "var xrpc_qid := \"\";         # qid remains empty for non-2pc 
queries\n"
         "var xrpc_caller := \"\";      # qid is caller-id of the root of the 
XRPC tree\n"
         "var xrpc_hdl := ptr(0);       # handle to link Prepare messages with 
Commit messages.\n"
-        "var xrpc_seqnr := 0LL;        # if this query is an XRPC request, a 
session-unique nr\n" 
+        "var xrpc_seqnr := 0LL;        # if this query is an XRPC request, a 
session-unique nr\n"
         "var xrpc_timeout := 30000LL;  # configurable usec timeout\n"
         "var xrpc_mode := \"none\";    # format: 
(none|repeatable)[-iterative][-trace]\n"
         "var xrpc_coord := false;      # this query should act as XRPC 
coordinator?\n"


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to