in src/main/scala/datastore/ElasticsearchRepo.scala [365:379]
override def atomsForList(atomIds: Seq[String], atomType: Option[String]) = {
findAtoms(Some(atomIds), None, None, atomType, None,None, None, Some(atomIds.length), None) flatMap { response =>
if (response.isError) {
logger.error(s"Could not make query for tags $atomIds: ${response.error}")
Future.failed(response.error.asException)
} else {
Future(response.result.hits.hits
.map(RawResult.apply)
.map(_.map(_.content))
.collect({ case Right(tag) => tag })
)
.map(_.toSeq)
}
}
}