fix: send boolean filter values without quotes (#5880)
Ensure boolean facet values like open_source=true are not wrapped in quotes in new_filters, matching MeiliSearch filter syntax. Made-with: Cursor
This commit is contained in:
@@ -474,7 +474,7 @@ export function useSearch(
|
||||
}
|
||||
orGroups[field].push(val)
|
||||
} else {
|
||||
parts.push(`${field} = "${val}"`)
|
||||
parts.push(`${field} = ${val === 'true' || val === 'false' ? val : `"${val}"`}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user