Skip to content

Instantly share code, notes, and snippets.

@itasyurt
Last active January 17, 2021 14:06
Show Gist options
  • Save itasyurt/73ef288bd738b43d806d58bb6205ad77 to your computer and use it in GitHub Desktop.
Save itasyurt/73ef288bd738b43d806d58bb6205ad77 to your computer and use it in GitHub Desktop.
val engineName = "f1drivers2020"
val client = DefaultClient(url = "http://localhost:3002", apiKey = apiKey)
val sr = SearchRequest(query = "ferrari")
val resp = client.search.search(engineName, searchRequest = sr)
resp.results.forEach { println(it) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment