/[pgestraier]/trunk/pgest.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/pgest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 49 by dpavlin, Sat Oct 29 18:54:40 2005 UTC revision 51 by dpavlin, Tue May 9 22:55:42 2006 UTC
# Line 570  Datum pgest_node(PG_FUNCTION_ARGS) Line 570  Datum pgest_node(PG_FUNCTION_ARGS)
570                  est_cond_set_max(cond, limit + offset);                  est_cond_set_max(cond, limit + offset);
571          }          }
572    
573            if (offset) {
574                    elog(DEBUG1,"est_cond_set_skip(%d)", offset);
575                    est_cond_set_skip(cond, offset);
576            }
577    
578          /* get the result of search */          /* get the result of search */
579          nres = est_node_search(node, cond, depth);          nres = est_node_search(node, cond, depth);
580    
# Line 597  Datum pgest_node(PG_FUNCTION_ARGS) Line 602  Datum pgest_node(PG_FUNCTION_ARGS)
602                  nrows = resnum - offset;                  nrows = resnum - offset;
603          }          }
604    
   
605          elog(DEBUG1, "pgest_node: found %d hits for %s", resnum, query);          elog(DEBUG1, "pgest_node: found %d hits for %s", resnum, query);
606    
607    
# Line 607  Datum pgest_node(PG_FUNCTION_ARGS) Line 611  Datum pgest_node(PG_FUNCTION_ARGS)
611          {          {
612    
613                  /* get result from estraier */                  /* get result from estraier */
614                  if (! ( rdoc = est_noderes_get_doc(nres, i + offset) )) {                  if (! ( rdoc = est_noderes_get_doc(nres, i) )) {
615                          elog(INFO, "pgest_node: can't find result %d", i + offset);                          elog(INFO, "pgest_node: can't find result %d", i + offset);
616                  } else {                  } else {
617                          elog(DEBUG1, "URI: %s\n Title: %s\n",                          elog(DEBUG1, "URI: %s\n Title: %s\n",

Legend:
Removed from v.49  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.26