Created
January 28, 2014 02:41
-
-
Save remd/8661440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override def query(q: String) = { | |
val responses = clients.map {client => client.query(q)} | |
val matches = responses.map {response => JSON.parseFull(response.get().getContent().toString("UTF-8")) match { | |
case Some(obj: Map[String, List[Match]]) => obj("results") | |
}} | |
querySuccessResponse(matches) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment