From c7bbfd6d0f5767530d67b6a71629a7d466c672b5 Mon Sep 17 00:00:00 2001 From: Peter Banda Date: Wed, 19 Jun 2019 14:16:33 +0200 Subject: [PATCH] NOT LIKE for Mongo implemented/fixed. Closes #14 --- .../scala/org/ada/server/dataaccess/mongo/MongoAsyncRepo.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/ada/server/dataaccess/mongo/MongoAsyncRepo.scala b/src/main/scala/org/ada/server/dataaccess/mongo/MongoAsyncRepo.scala index 8ca2d68..4e627d8 100644 --- a/src/main/scala/org/ada/server/dataaccess/mongo/MongoAsyncRepo.scala +++ b/src/main/scala/org/ada/server/dataaccess/mongo/MongoAsyncRepo.scala @@ -195,7 +195,7 @@ protected class MongoAsyncReadonlyRepo[E: Format, ID: Format]( Json.obj("$regex" -> value, "$options" -> "i") case RegexNotEqualsCriterion(_, value) => - Json.obj("$regex" -> s"^(${value})", "$options" -> "i") + Json.obj("$regex" -> s"^(?!${value})", "$options" -> "i") case c: NotEqualsCriterion[T] => { // val json = c.value match {