WWW::SearchBroker::Search - Search client component of the SearchBroker


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

Index


NAME

Top

WWW::SearchBroker::Search - Search client component of the SearchBroker

SYNOPSIS

Top

	use WWW::SearchBroker::Search;

	# Port the broker server is running on
	my $port = 9000;

	# Create a search requestor
	my $search = new WWW::SearchBroker::Search(port => $port);

	# Query
	my $srch = 'SEARCH<15><a,b,c><foo bar>';

	# Send query
	$search->send_query();

	# Print results
	$search->dump_results();

DESCRIPTION

Top

Service functions for the search component of the search broker (WWW::SearchBroker).

new(port => $server_port)

Creates a WWW::SearchBroker::Search searcher that makes requests to a WWW::SearchBroker::Broker broker on $server_port.

send_query()

Send the specified query to the broker for execution.

get_results()

Read the aggregated results back from the broker.

dump_results()

Dump the result set to stdout/stderr.

get_response($file_handle)

Read an agent response from the specified file handle. Return it in deserialized state (i.e. as a perl object).

SEE ALSO

Top

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

AUTHOR

Top

Nathan Bailey, <nate@cpan.org>


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