| WWW-SearchBroker documentation | view source | Contained in the WWW-SearchBroker distribution. |
WWW::SearchBroker::Aggregator_Scorer - Results aggregation for the SearchBroker
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);
Aggregates and score results and return a sorted list. Part of the the search broker (WWW::SearchBroker).
score(), aggregate()
WWW::SearchBroker, WWW::SearchBroker::Search, WWW::SearchBroker::Broker, WWW::SearchBroker::Common, tests/www_searchbroker.pl.
Nathan Bailey, <nate@cpan.org>
| WWW-SearchBroker documentation | view source | Contained in the WWW-SearchBroker distribution. |