Skip to content

rohmatmret/appsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppSearch Client for ElasticAppsearch

Go Report Card GoDoc

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..

Require

Installation

go get -u https://github.com/rohmatmret/appsearch

Init configurations

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!

Feature

  • Create Engine
  • List Engine
  • Create Schema
  • List Documents
  • IndexCatalog
  • Search
  • FindByIds
  • Analitycs
  • Click
  • Suggestion

Example

Create New Engine

// 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")
}

Delete Engine

	func main() {
		appsearch.ApiKey = "your-private-key"
		appsearch.Url = "your engine url"
		appsearch.EngineName = "enginename"
		
		app := appsearch.Connect()
		resp := app.DeleteEngine("yourname_engine")
	}