Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client, _ = elastic.NewClient(
elastic.SetURL("http://localhost:9200"),
elastic.SetHealthcheckInterval(10*time.Second),
)
Client is being called by the main.go every time the app is being started
View Source
var NewMapping string
NewMapping lets you add mapping
Functions ¶
func DeleteDocument ¶
func DeleteDocument()
DeleteDocument lets you delete a document from a given index
func GetNewClient ¶
func GetNewClient()
GetNewClient will throw error message if there is any, during the call of NewClient
func UpdateDocument ¶
func UpdateDocument()
UpdateDocument lets you update a specific document in a given index
func UpdateMapping ¶
func UpdateMapping()
UpdateMapping lets you update the mapping of a given index
Types ¶
type TestUpdate ¶
Click to show internal directories.
Click to hide internal directories.