This is a simple client for Elastic AppSearch. This client is still in development. If you want to contribute, please fork this repository and send a pull request.
Please Read Full Official documentation here..
- Apikey here..
- Host
go get -u https://github.com/rohmatmret/appsearch
func main() {
// axample init engine
appsearch.ApiKey = "your-private-key"
appsearch.Url = "your engine url"
appsearch.EngineName = "enginename"
appsearch.Connect()
// or you can init engine with your config
appsearch.NewAppSearch("your-private-key", "your engine url", "enginename")
}
For more Information Detail, please see Official Documentation here..
- [AngularJS] - HTML enhanced for web apps!
- Create Engine
- List Engine
- Create Schema
- List Documents
- IndexCatalog
- Search
- FindByIds
- Analitycs
- Click
- Suggestion
// Example for Create Engine
func main() {
appsearch.ApiKey = "your-private-key"
appsearch.Url = "your engine url"
appsearch.EngineName = "enginename"
app := appsearch.Connect()
resp := app.CreateEngine("yourname_engine")
}
func main() {
appsearch.ApiKey = "your-private-key"
appsearch.Url = "your engine url"
appsearch.EngineName = "enginename"
app := appsearch.Connect()
resp := app.DeleteEngine("yourname_engine")
}