mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 19:05:12 +00:00
19 lines
304 B
Go
Executable File
19 lines
304 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/search"
|
|
)
|
|
|
|
// Delete a document given its ID
|
|
func main() {
|
|
searchService := search.NewSearchService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := searchService.Delete(&search.DeleteRequest{
|
|
Id: "1234",
|
|
Index: "customers",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|