diff --git a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl index 04075a80..9e730b03 100644 --- a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl @@ -141,7 +141,7 @@ if ('operator' in json_query && json_query.operator.startsWith("not_")){ string_query += "NOT "; } - string_query += json_query.field + ":" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') ; + string_query += json_query.field + ":\"" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') + "\""; } return string_query; }