This tag retrieves search results from Yahoo!'s REST Web Search API. Returns a dictionary containing the result details. Requires [dictionary], [xml_tree], and a valid Yahoo! Application ID. All of the parameters shown in the documentation can be passed to the tag. Note that if you wish to change the type of search performed, you must use 'searchtype' as the param name instead of 'type' to avoid conflicts with Lasso.
The following values are accessible in the resulting object:
->query - The original query used to create the results. ->found - The total found count (note: tends to vary). ->shown - The number of results shown. ->first - The position of the first result shown. ->last - The position of the last result shown. ->previous - The position needed to recreate the previous set of results. ->next - The position needed to create the next set of results. ->results - An array of dictionary objects containing the result data.
Each item in the results array contains the following values: ->title - The title of the page. ->summary - A summary or excerpt of the page. ->url - The URL of the page. ->clickurl - The same URL through Yahoo!'s click-tracking mechanism.
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
03/15/2007, Jason Huck Updated.
Added some workarounds for how previous/next skip counts are calculated to account for some funky math returned by the service on the last set of search results.
Updated.
Added some workarounds for how previous/next skip counts are calculated to account for some funky math returned by the service on the last set of search results.