diff --git a/packages/backend-core/src/db/lucene.ts b/packages/backend-core/src/db/lucene.ts index 6f2f4fc991..49f345817e 100644 --- a/packages/backend-core/src/db/lucene.ts +++ b/packages/backend-core/src/db/lucene.ts @@ -309,7 +309,7 @@ export class QueryBuilder { return null } if (!Array.isArray(value)) { - return `${key}:${value}` + return `${key}:/${value?.toLowerCase()}/` } let statement = `${builder.preprocess(value[0], { escape: true })}` for (let i = 1; i < value.length; i++) { diff --git a/packages/shared-core/src/filters.ts b/packages/shared-core/src/filters.ts index 34186cf554..85c4cd7f5c 100644 --- a/packages/shared-core/src/filters.ts +++ b/packages/shared-core/src/filters.ts @@ -22,6 +22,7 @@ export const getValidOperatorsForType = ( Op.Empty, Op.NotEmpty, Op.In, + Op.Contains, ] const numOps = [ Op.Equals,