ad_search_results_cutoff

one of the documented procedures in this installation of the ACS
Usage:
ad_search_results_cutoff   nth_row   current_score   max_score
What it does:
Returns 1 to indicate that a search result should be cut off, based on a heuristic measure of current relevance vs. number of rows already returned.
Defined in: /web/philip/tcl/site-wide-search-defs.tcl

Source code:


    if { ($nth_row > 25) && ($current_score < [expr 0.3 * $max_score] ) } {
	# we've gotten more than 25 rows AND our relevance score
	# is down to 30% of what the maximally relevant row was
	return 1
    }
    if { ($nth_row > 50) && ($current_score < [expr 0.5 * $max_score] ) } {
	# take a tougher look
	return 1
    }
    if { ($nth_row > 100) && ($current_score < [expr 0.8 * $max_score] ) } {
	# take a tougher look yet
	return 1
    }
    return 0


philg@mit.edu