Searching Documents

Search amongst the documents you have with search.

The document ID and its associated score is returned. The higher the score, the stronger the match of the document with the query sent.

results, err := api.Search(client, "bed")
if err != nil {
log.Printf("search failed: %s", err)
for _, res := range results {
fmt.Printf("docID: %s, score: %f\n", res.DocID, res.Score)