|
|
@ -100,7 +100,8 @@ export const buildLuceneQuery = filter => { |
|
|
if (Array.isArray(filter)) { |
|
|
if (Array.isArray(filter)) { |
|
|
filter.forEach(expression => { |
|
|
filter.forEach(expression => { |
|
|
let { operator, field, type, value, externalType } = expression |
|
|
let { operator, field, type, value, externalType } = expression |
|
|
const isHbs = typeof value === "string" && value.match(HBS_REGEX)?.length > 0 |
|
|
const isHbs = |
|
|
|
|
|
typeof value === "string" && value.match(HBS_REGEX)?.length > 0 |
|
|
// Parse all values into correct types
|
|
|
// Parse all values into correct types
|
|
|
if (type === "datetime" && value) { |
|
|
if (type === "datetime" && value) { |
|
|
value = new Date(value).toISOString() |
|
|
value = new Date(value).toISOString() |
|
|
|