score:2

Accepted answer

You can build a regex. I don't have my environment up to test it, but this should help you get on track:

import com.mongodb._
val regex = languageCodeFilter map ( l => s"(?:.*\\Q$l\\E.*)" ) mkString "|" r
val query = QueryBuilder.start("languageCode").regex(regex).get

Related Query

More Query from same tag