Fuzzy search is not working

Fuzzy search always returning no value, I checked everything, I checked the id of the search input, I checked the data type, and it is the same, what is wrong?

image

I recommend staying away from Fuzzy Search because it loads the entire data source into the client’s browser before it can filter it.

Try storing an all-lowercase version of the “Class name” and search Class name-lowercase contains Input's value:lowercase :blush:

3 Likes

Hi @amer2,

Thank you for reaching out.

We noticed you’re missing a key condition in the repeating group. In addition to the condition you have for when the Search input is not empty, you’ll need to add another condition that checks whether the Fuzzysearch&Autocorrect Matches > 0.

This ensures that the repeating group only shows results when there are actual matches found by the fuzzy search. Without this, even if the input isn’t empty, the repeating group won’t display anything because it’s not being told to act when matches are present.

Please try adding the following condition:

When Fuzzysearch&Autocorrect Matches:count > 0
Set the data source to Fuzzysearch&Autocorrect Matches and ensure the repeating group is visible when this condition is true.
Once this is added, the fuzzy search should start returning values correctly.

For more details, you can check out the documentation for the ZQ Fuzzy Search & Autocomplete plugin and the demo page here.

Let us know if you need further help!

Best regards,
Zeroqode Support Team

Why nobody told me that it should be visible on page load? Any way thanks for you answer

Hi @amer2,

Glad to be helpful. Please feel free to reach us again when you need some help or assistance. It will be a pleasure to cooperate. :slightly_smiling_face:

By the way, if you like our plugin you can rate it by going to the Plugins tab in Bubble editor. Find the plugin by name and give it as many stars as it deserves. We would appreciate it a lot!

Best Regards,
Zeroqode Support Team

1 Like

Hi @ZeroqodeSupport , does this plugin work with Option Sets as a data source? I checked the documentation but it wasn’t clear.

Hi @randomanon ,

Thank you for reaching out!

The Fuzzy Search plugin does not support Option Sets as a data source. The plugin requires the data source to not be a list, and since Option Sets are essentially static lists, they are not compatible with the plugin.

For more information, you can refer to the documentation here: ZQ Fuzzy Search and Autocomplete Plugin.

If you have any further questions or need assistance, feel free to reach out!

Best regards,
Zeroqode Support Team

1 Like

Hi tylerboodman,

What do you recommend to search item in a RG ?

Thanks,

I recommend creating a search field (text) and have a database trigger keep the field updated whenever other fields change. so Database trigger → Make changes to thing → set search field to a combination of the other fields (make them lowercase). Then when you go to search do searchField contains Input's value:lowercase

1 Like

Make them lowercase, and remove spaces:

searchField = Text:lowercase:find and replace (find space, replace with nothing).

Your RG constraint is Input's value:lowercase:find and replace (find space, replace with nothing).

This makes your search case insensitive, and space insensitive, so searching Space Dog would match database entries for Space Dog, SpaceDog, spacedog, spaceDog etc.

1 Like

Thank you both !!