removal of date validation warning; validation for dateConstraint on date formats
Change-Id: I89948ed3b16ac7ef61da4d6741209405ac0ac8a0
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessor.java b/src/main/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessor.java
index 35bafa6..e051e19 100644
--- a/src/main/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessor.java
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessor.java
@@ -114,14 +114,14 @@
requestMap = new LinkedHashMap<String, Object>();
return;
}
- if (QueryUtils.checkDateValidity(valueNode.getText())) {
- addWarning("The collection query contains a value that looks"
- + " like a date ('" + valueNode.getText() + "') and an"
- + " operator that is only defined for strings" + " ('"
- + match + "'). The value is interpreted as"
- + " a string. Use a date operator to ensure the value"
- + " is treated as a date");
- }
+// if (QueryUtils.checkDateValidity(valueNode.getText())) {
+// addWarning("The collection query contains a value that looks"
+// + " like a date ('" + valueNode.getText() + "') and an"
+// + " operator that is only defined for strings" + " ('"
+// + match + "'). The value is interpreted as"
+// + " a string. Use a date operator to ensure the value"
+// + " is treated as a date");
+// }
putIntoSuperObject(term);
}