public static class Search.Builder
extends java.lang.Object
A factory class for creating search requests.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Search |
build()
Build the search request.
|
Search.Builder |
setApp(EditorKey appKey)
Set the EditorKey for the app to search in.
|
Search.Builder |
setLimit(int limit)
Limits the number of results.
|
Search.Builder |
setListener(Search.SearchListener listener)
Set a listener to receive events for this search request.
|
Search.Builder |
setQuery(java.lang.String query)
Set the query string for this request.
|
public Search.Builder setQuery(java.lang.String query)
Set the query string for this request.
public Search.Builder setLimit(int limit)
Limits the number of results. Limit results to 20 or less for best performance.
public Search.Builder setApp(EditorKey appKey)
Set the EditorKey for the app to search in.
public Search.Builder setListener(Search.SearchListener listener)
Set a listener to receive events for this search request.
public Search build()
Build the search request.