added missing '@' for type in re_query
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java b/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
index c3ffb11..d1da8c4 100644
--- a/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/PoliqarpPlusTree.java
@@ -446,11 +446,12 @@
reQuery.put("@value", regex);
reQuery.put("relation", "=");
+ // if in field, regex was already added there
if (!openNodeCats.get(1).equals("field")) {
LinkedHashMap<String,Object> token = new LinkedHashMap<String,Object>();
token.put("@type", "korap:token");
token.put("@value", reQuery);
- reQuery.put("type", "korap:term");
+ reQuery.put("@type", "korap:term");
if (openNodeCats.get(1).equals("query")) {
requestMap.put("query", token);