Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient() *cloudsearchdomain.CloudSearchDomain
NewClient create a new cloudsearchdomain.CloudSearchDomain instance. The instance is configured using aws environment variables REGION, PROFILE, AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID.
Types ¶
type SearchEngine ¶
type SearchEngine interface { // Suggest take a string in parameter, this string contains the query of the user. The method will return // suggestions based on this phrase. Suggest(string, int64) (string, error) //SimpleSearch take a query search all text and text-array fields for the specified string. //Search for phrases, individual terms, and prefixes. SimpleSearch(string, int64) (*cloudsearchdomain.SearchOutput, error) //StructuredSearch search specific fields, construct compound queries using //Boolean operators, and use advanced features such as term boosting and //proximity searching. StructuredSearch(string, int64) (*cloudsearchdomain.SearchOutput, error) }
SearchEngine used aws CloudSearch to search element into the database or can be used to get search suggestions.
Click to show internal directories.
Click to hide internal directories.