Skip to content

Instantly share code, notes, and snippets.

@eamelink
Last active January 2, 2016 02:39
Show Gist options
  • Save eamelink/8238588 to your computer and use it in GitHub Desktop.
Save eamelink/8238588 to your computer and use it in GitHub Desktop.
trait ElasticSearchComponent {
val esClient: EsClient
}
trait ElasticSearchIndex { self: ElasticSearchComponent =>
def findAll() = esClient.doAQueryForAll()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment