I’m trying to do a search system. After hours of searching on the forum, apparently there is no solution…
Basically, there is a text input where the user can type in, and the results (a repeating group) do a “search for” with the constraints “name (text field) contains input’s value”
However, I understood the contains doesn’t work in this case because it looks for a list.
So, how do you search for a similar text, if I type “ca”, I want the result to be “Good Car”
Do you guys have an alternative solution ? plug ins ?
Sorry I read this and assumed that is exactly what the fuzzy search plugin does and the auto-correcting is like the cherry on top that makes it that much better…but I’m pretty sure there isn’t any auto correction functionality of the fuzzy search, just that it ignores capitalization.
What are you doing to update the your repeating group data source after you have typed the text into the input?
I don’t know how much worse it would be than the fuzzy search plugin in that regard. I have a database with 1700 entries and the fuzzy search plugin fails to load any results for it until after maybe 3 minutes. With that being said I am going to use your example to test the differences between its performance and that of the fuzzy pluign on that particular set of data.
Thanks for sharing. Always great to get other perspectives.
This second one is from the method outlined by Julien when a search is performed.
Seems to me like Juliens’ method is clearly a winner in this situation. It seems like simply having the auto complete on the page it is causing performance issues. What I assume is that it is performing searches even before it is prompted to do so in order to populate the plugin with the data needed to “parse”.
I am doing this on a list of approximately 1700 items.
What is more, is after using the plugin method, which ironically produces no results even after waiting for 5 minutes, it also doesn’t load the entire list of items to be used in the “parse” as fast as a simple repeating group with a basic “do a search for” in the datasource.
I’m not sure exactly why this is, but I was attempting to use the autocomplete on this data type and had experienced the problems and was close to giving up on the possibility of giving my users the type of user experience I desired.
Now, thanks to Julien, I have a way to add the functionality to the app in way that actually works.
By the way, when using Juliens method, it took about 3 seconds for the repeating group to get results that match the inputs value, and it returned all that “contain” the text value in the search input.