commit | 46048fb67414c8449173bed170b58be365b3c729 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Tue Jun 27 10:53:27 2017 +0200 |
committer | margaretha <margaretha@ids-mannheim.de> | Thu Jun 29 16:49:21 2017 +0200 |
tree | 11c8c8bf445da1321200900c9030f3b59029606c | |
parent | 74ad0ead8d93c151dcb97149cd14b56df0251ca0 [diff] |
Disabled license checking in light (matchinfo) service. Change-Id: I6a11a0073ad173ce6cf0fe77107f78b0c8816816
diff --git a/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java b/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java index 6a7bff3..189cdd5 100644 --- a/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java +++ b/src/main/java/de/ids_mannheim/korap/resource/rewrite/CollectionRewrite.java
@@ -46,7 +46,8 @@ && node.at("/key").asText().equals("availability")) { String queryAvailability = node.at("/value").asText(); String matchOp = node.at("/match").asText(); - if (!userAvailabilities.contains(queryAvailability)){ + if (userAvailabilities.contains(queryAvailability) && matchOp. + equals(KoralMatchOperator.EQUALS.toString())){ userAvailabilities.remove(queryAvailability); } }