Modified logical search query

This commit is contained in:
Georgy Litvinov 2020-08-21 10:49:41 +02:00
parent 9f7ffcd62d
commit ccb2658aea

View file

@ -85,7 +85,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 + ":\'" + escape(json_query.value.toString().replace(/['"]+/g, '')) + "\'"; string_query += json_query.field + ":\"" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') + "\"";
} }
return string_query; return string_query;
} }