Modified logical search query

This commit is contained in:
Georgy Litvinov 2020-08-21 10:49:41 +02:00
parent 7abcdf832b
commit ecd0651553

View file

@ -85,7 +85,7 @@
if ('operator' in json_query && json_query.operator.startsWith("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;
}