Try to fix queries

This commit is contained in:
Georgy Litvinov 2020-12-02 21:32:53 +01:00
parent 3b78730e5d
commit f6c64476fe

View file

@ -140,7 +140,7 @@
if ('operator' in json_query && json_query.operator.startsWith("not_")){ if ('operator' in json_query && json_query.operator.startsWith("not_")){
string_query += "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; return string_query;
} }