searchengine

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL