Problem with ZQ Fuzzy Search and autocomplete

@avern87,

Will you be the one who helps us to take a closer look at this issue within your app, please? :slightly_smiling_face:

Just add support@zeroqode.com to your collaborators list and indicate the page name, where you are using the plugin, and how to reproduce the issue. I’m afraid, we can do nothing until we have an example where the mentioned issue is possible to reproduce constantly, and until we have a test environment. :pensive:

Hope to continue the issue investigation with you. :pray:
Regards,
Zeroqode Support Team

Hey guys,
I can’t give you access unfortunately, but I’m having the same issue.
I updated to version 1.14.0 and fuzzy search stopped working
rolled it back to 1.13.0 and it’s fine.

Oddly enough, other bubble elements set to “show when input is not empty” also stopped working. So it was as if bubble could no longer see the input elements.

Additional context, my bubble app is on version 20. But other than that, everything else with the fuzzy search was very standard, and rolling back to v1.13.0 made it clear that it wasn’t an error on my part.

@devin.fraze @avern87 As a quick fix I used the Input Watcher plugin as a middleman between the input and the Fuzzy Search element. Put the input’s ID in the WatchInput element, then have the Fuzzy search point to the WatchInput’s value (not the ID but use the other field where it lets you pick an input’s value]

The Fuzzy search kept breaking on me randomly and haven’t had any issues so far.

1 Like

Nice workaround. I don’t have the input in a RG though, so I don’t have a need for a dynamic ID. Reverting it to v1.13.0 is far simpler and has the same effect. However, for anyone wanting the dynamic functionality, your solution sounds good

1 Like

Me using the Input Watcher as the middleman is just to get the “instant text response” where you type and there’s no delay. VS letting the Fuzzy Search element do the instant response then breaking in the future. Nothing really to do with being in a RG

I’m happy to see if I can build something similar in a test app. Unfortunately I can’t give you access to my app.

1 Like

Ok… Here’s a very simple repro: (Sent via DM)

This simple setup doesn’t work on the latest version of the plugin. However, all I have to do for it to work again is simply roll the plugin back by one version and it begins working.

Thanks, @avern87. Can you please DM us with the link to the editor? With edit rights, if you don’t mind. To change the plugin version. :pray:

Hello, everyone.

Let us please provide a short guide on how to use the 14th version flawlessly :smiley:

  1. if you use the static search ID , you might need to make sure you have these 2 conditions on your Repeating group with results:


    In some use cases, disabeling of this checkbox might help:

  2. if you use the dynamic search ID , here is a test app with the functional 14th version.
    The use case: each user has a name, email and Event. Event is a list of other parameters such as date, description, and user. There is a Repeating group that shows the list of users. Inside each “user” cell - there is a list of this user’s Events. You can do a search on each user’s event list.The setup is super simple:

Summary

How it works:

Friends, please feel free to DM your use case setup in case you need some help or verification from our side. We confirm that with the correct setup 14th version is functional. :smiling_face_with_tear:

Regards,
Zeroqode Support Team

Hey @ZeroqodeSupport

We have created an element where the user can search between their friends or they can search throughout the whole community and we are using the fuzzy search element. The search bar is not even responding when we type in a name to search up in neither the explore community repeating group nor the friends repeating group. We do not know the problem.



Hello, @wyatt.10. Thanks for reaching out and using our plugin :pray:

If you are using the latest plugin version, please:

  1. use the recommended on the plugin demo page setup for the Repeating group (Conditional tab):
  2. do not apply any filters or constraints to the Search&Autocorrect element

If you want a filtered search result, apply filters after the plugin has returned you the list of Matches. You can do it by adding this filtration method to the Matches results:


or set your filter right into the Repeating Group:

Hope it helps.
Zeroqode Support

Hello,

I am having trouble getting this to work. Any chance you can provide screenshots or a link to this setup ?

Thanks,

Jibby

Hello @Jibbystyle,
Sorry for the late reply. :pray:

Please check the plugin’s live demo page, demo editor page, and the docs in parallel to see the correct setup. You can always refer to these when creating your app and need to implement the functionality.

If you encounter any difficulties, please share details of your setup and the issue. We will be happy to assist you.

Best regards,
Zeroqode Support Team

How can I search across more than one data type?

I have a “parent” data type with a “Name” field, but I also want my search to include the “child” data type’s “Notes” field.

The parent/child are obviously related data types and I can access them dynamically. But the Fuzzy Search & Autocomplete only allows me to select one data source (although many fields of that data source).

My second question is that I do not understand at all how to set the threshold, distance and location settings.

I’ve read what I can in this forum, I’ve looked at the demo app (which does not run in Chrome on my Mac, but I can see the editor and examine the settings), and I’ve tried tons of combinations.

I cannot seem to get a search result that is at all useful. It either gives me nearly everything or nothing at all. Can someone please explain how to use these settings?

Thank you!

Hi @ken1,
Sorry for the delayed response.

Unfortunately, the plugin only allows selecting one data source. Apologies for the inconvenience but it’s not possible to search for more than one data type. :pray:

These fields are related to the match of the text you are searching for.

Threshold: Number 0 means that the plugin requires a perfect match. If you need a non-perfect match, just use 1, instead of 0.

The “distance” in fuzzy search specifies how close a match needs to be to a particular location. Imagine you’re looking for a word, and you have a specific spot in mind. If the distance is set to 0, it means the word must be exactly at that spot. If the distance is 1000, it can be within 800 characters of the spot and still count as a good match, but it’s not a perfect match unless it’s exactly at the spot. So, the larger the distance, the more flexibility you have in finding matches close to the specified location.

The “location” field tells us roughly where in the text we expect to find a certain pattern. It’s like giving a general idea of where to start looking in a book for a specific word or phrase.

Hope that helps! Please let us know if you have any further questions.

Best regards,
Zeroqode Support Team

Thank you. What are the best settings then if I don’t have any expectation of where to find the match? I want the search to include the entire text of every record (it’s like a task manager so each text is not expected to be very long). Would I use a location of 0 and a distance of (something very large)?

Hi @ken1,

Yes, it should help. We are also using the same values in our demo example.

Summary

If we can help you with anything else, please feel free to contact us. :slightly_smiling_face:

Best regards,
Zeroqode Support Team