Greg Lindahl > WebService-Blekko > WebService::Blekko::QueryResultSet

Download:
WebService-Blekko-1.00_07.tar.gz

Dependencies

Annotate this POD

Module Version: 1.00   Source  

NAME ^

WebService::Blekko::QueryResultSet -- query result from WebService::Blekko

METHODS ^

next

Retrieves the next WebService::Blekko::QueryResult in the list.

error

Set to a non-zero string if there is an error.

http_code

The HTTP response code. If it is not 2XX, there was a problem.

total_num

The total number of possible results.

sug_slash

A list of suggested slashtags. For example, a search for Linus Torvalds will return a list of suggestions such as /linux and /tech. It is a good idea to show these suggestions to your users.

auto_slashtag

Under certain circumstances, blekko will add a slashtag to your query term. For example, q=cure+for+headaches will auto-fire the /health slashtag, and this will cause auto_slashtag to be set to the string '/health'.

If you wish to avoid auto-slashtag firing, add /web to the query, i.e. q=cure+for+headaches+/web

auto_slashtag_query

When an auto slashtag is fired, sometimes we also change the query by adding or dropping words. If so, auto_slashtag_query will be set to a string with the final query terms.

syntax highlighting: