WWW::SearchBroker::Aggregator_Scorer - Results aggregation for the SearchBroker


WWW-SearchBroker documentation  | view source Contained in the WWW-SearchBroker distribution.

Index


NAME

Top

WWW::SearchBroker::Aggregator_Scorer - Results aggregation for the SearchBroker

SYNOPSIS

Top

	use WWW::SearchBroker::Aggregator_Scorer;

	my $query = 'foo bar'
	my $result = 'foodumentally barupulous';
	my $search_url = 'http://foo.com/fnord/';
	my $access = 1;
	print "Scoring $query in $result at $search_url with access = $access\n";
	# Score a specific result
	my $score = score($query,$result,$search_url,$access);
	print "\n<<<Score = $score>>>\n";

	# Aggregate (with scoring) a results set
	# Access need to be stored against individual result/results set,
	# not globally across all results.
	$aggregated_results_ref = aggregate($query,$results_ref,$access);

DESCRIPTION

Top

Aggregates and score results and return a sorted list. Part of the the search broker (WWW::SearchBroker).

EXPORT

score(), aggregate()

score($query,$result_hash,$access)
aggregate($query,$results_ref,$access)

SEE ALSO

Top

WWW::SearchBroker, WWW::SearchBroker::Search, WWW::SearchBroker::Broker, WWW::SearchBroker::Common, tests/www_searchbroker.pl.

AUTHOR

Top

Nathan Bailey, <nate@cpan.org>


WWW-SearchBroker documentation  | view source Contained in the WWW-SearchBroker distribution.