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