We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The Get service retrieves a document from an index.
Get
// Get tweet with specified ID ctx := context.Background() get1, err := client.Get(). Index("twitter"). Type("tweet"). Id("1"). Do(ctx) if err != nil { // Handle error panic(err) } if get1.Found { fmt.Printf("Got document %s in version %d from index %s, type %s\n", get1.Id, get1.Version, get1.Index, get1.Type) }