Packagecom.yahoo.webapis.answers.params
Classpublic class SearchParams

Yahoo! Answers API - A Object for Passing Parametors to the Query Search, uses URLLoader through composition.



Public Properties
 PropertyDefined by
  category_id : String
category_id - Search only in the specified category ID or IDs.
SearchParams
  category_name : String
category_name - Search only in the specified category name or names.
SearchParams
  date_range : String
date_range - Filter based on date submitted: all: Anytime 7: Within 7 days 7-30: Within 7-30 days 30-60: Within 30-60 days 60-90: Within 60-90 days more90: More than 90 days omit for default "all".
SearchParams
  region : String
region - Filter based on country: us: United States uk: United Kingdom ca: Canada au: Australia in: India es: Spain br: Brazil ar: Argentina mx: Mexico e1: en Espanol it: Italy de: Germany fr: France sg: Singapore omit for default "us".
SearchParams
  results : Number
results - Number of questions to be returned.
SearchParams
  search_in : String
search_in - Search for keywords in: "all", "question", "best_answer", "nickname".
SearchParams
  sort : String
sort - Sorting order of result set: relevance: By relevance.
SearchParams
  start : Number
start - Starting question to list, used to display further results.
SearchParams
  type : String
type - Question status.
SearchParams
Public Methods
 MethodDefined by
  
SearchParams Constructor
SearchParams
  
collect():String
collect Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.
SearchParams
Property detail
category_idproperty
category_id:String  [read-write]

category_id - Search only in the specified category ID or IDs. (IDs may be seen in the request URLs when browsing Yahoo! Answers categories.)

Implementation
    public function get category_id():String
    public function set category_id(value:String):void
category_nameproperty 
category_name:String  [read-write]

category_name - Search only in the specified category name or names. Will match against the full path to the English category name as found on the Yahoo! Answers site. Category names are case-sensitive and should be URL-encoded. Computers & Internet>Software, for example, looks like this: Computers+%26+Internet%3ESoftware. omit for default to all categories

Implementation
    public function get category_name():String
    public function set category_name(value:String):void
date_rangeproperty 
date_range:String  [read-write]

date_range - Filter based on date submitted: all: Anytime 7: Within 7 days 7-30: Within 7-30 days 30-60: Within 30-60 days 60-90: Within 60-90 days more90: More than 90 days omit for default "all".

Implementation
    public function get date_range():String
    public function set date_range(value:String):void
regionproperty 
region:String  [read-write]

region - Filter based on country: us: United States uk: United Kingdom ca: Canada au: Australia in: India es: Spain br: Brazil ar: Argentina mx: Mexico e1: en Espanol it: Italy de: Germany fr: France sg: Singapore omit for default "us". You can enter multiple regions. The first will determine the destination country of hyperlinks.

Implementation
    public function get region():String
    public function set region(value:String):void
resultsproperty 
results:Number  [read-write]

results - Number of questions to be returned. default 10, max 50

Implementation
    public function get results():Number
    public function set results(value:Number):void
search_inproperty 
search_in:String  [read-write]

search_in - Search for keywords in: "all", "question", "best_answer", "nickname". When ommited default is "all".

Implementation
    public function get search_in():String
    public function set search_in(value:String):void
sortproperty 
sort:String  [read-write]

sort - Sorting order of result set: relevance: By relevance. date_desc: By date, newest first. date_asc: By date, oldest first. omit for default "relevance".

Implementation
    public function get sort():String
    public function set sort(value:String):void
startproperty 
start:Number  [read-write]

start - Starting question to list, used to display further results. default 0

Implementation
    public function get start():Number
    public function set start(value:Number):void
typeproperty 
type:String  [read-write]

type - Question status. Set to "all", "resolved", "open", or "undecided". omit for default "all"

Implementation
    public function get type():String
    public function set type(value:String):void
Constructor detail
SearchParams()constructor
public function SearchParams()

SearchParams Constructor

Method detail
collect()method
public function collect():String

collect Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.

Returns
String