Closed sshmyg closed 5 years ago
Not currently in the pipeline, as boolean search is not a string approximation problem. However, as a work-around, you could transform the booleans to numbers, thus is_ready_for_admin: true
would become is_ready_for_admin: 1
, which Fuse would internally change to string, thus is_ready_for_admin: "1"
.
When you search, before you pass the value to .search
, change the boolean-like strings ("true", "false") into their respective binary string representation - "0" and "1".
In theory, this could work. Give it a shot?
@krisk Made my own workaround ) convert booleans to array. Thnks for an answer.
@krisk even if it's not a string approximation, I use fuse for every search related, not only string approximation, would be great if we could search for more things than just strings
Hi, is there any way to find boolean params? E.g: find all
is_ready
oris_ready_for_admin
params with true? If search string looks likeA is_ready_for_admin is_ready