public class SmartSearch
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
search(java.lang.String input,
int timeout)
Requesting search using to the input query, returns first 10 results
|
void |
setDelegate(SearchDelegate searchDelegate)
Set the callback function for suggestion and search, those functions will get called
when the search server returns suggest or search result
|
void |
suggest(java.lang.String input,
int timeout)
Requesting suggestion using to the input query.
|
public void setDelegate(SearchDelegate searchDelegate)
searchDelegate
- SearchDelegate
public void suggest(java.lang.String input, int timeout)
input
- query used to do the suggesttimeout
- the maximum time in milliseconds to wait for resultpublic void search(java.lang.String input, int timeout)
input
- query used to do the searchtimeout
- the maximum time in milliseconds to wait for result