jahaan
August 21, 2023, 5:18pm
1
How would I make a fuzzy search feature? I know how to lowercase an input, but I’d like the user to search for by Genre, Author, Book or Location. A genre search brings up all books in that specific genre, author = specific author, book = specific book, location = books in that area of the house. I will send a project link below just so you know what I mean.
This is the app I’m making, please refer to it If you haven’t already: "Covers" digital bookshelf app
Link: Thunkable
you might try googling for ‘soundex’ algorithm to see if it works for you.
1 Like
jahaan
August 21, 2023, 6:54pm
3
I don’t know how to recreate that in Thunkable. Right now, I’m focusing on a 4-topic search.
What is a “fuzzy” search? Does that just mean that any combination of search terms should show results – like a filter?
jahaan
August 21, 2023, 7:14pm
5
A “fuzzy search” usually refers to a search system where the user can input a result like “watH is da Name of the no cod app developMent program” when the items in the database is “what is the name of the no code app development program”. In this case, though, I want the user to be able to search for either genre, author, location or name but on the same input.
1 Like
Wow, that sounds really hard to program. I would think it would be easier to use an API that handles such searches.
I don’t know of any, sorry.
1 Like
maybe someone can transcribe the algorithm here to thunkable. it’s supposed to be 2.7% better than soundex…
The New York State Identification and Intelligence System Phonetic Code, commonly known as NYSIIS, is a phonetic algorithm devised in 1970 as part of the New York State Identification and Intelligence System (now a part of the New York State Division of Criminal Justice Services). It features an accuracy increase of 2.7% over the traditional Soundex algorithm.
The algorithm, as described in Name Search Techniques, is:
jared
August 23, 2023, 2:09am
10
Algolia is a great search engine. Easy to interact with. Just finished building part of an internal tool with it.
Xano has a built in fuzzy search, not nearly as nice as algolia.
You could also use a js library and a webviewer element to do this.
In short, you really shouldn’t build this feature yourself unless it’s an assignment from school.
Use a tool that already exists!
1 Like
jahaan
August 23, 2023, 5:14pm
11
Honestly, I’m really bad at integrating pre-made solutions into my apps. Haha
jared
August 24, 2023, 2:03am
12
I guarantee you’ll find it harder to create this feature yourself.
It’s an api call and a list/layout/dataviewer to see the data
Use the onchange event for your input element
It’s dope and I can’t believe there’s not a sample here.
Come to think of it! Hmmm
you may want to try this implementation i made:
a recent query in the forum about fuzzy search prompted me to research on the topic and i found out that there are dozens of algorithms out there - one of the first ones was Soundex but it turned out to have many mismatches. i found one that seemed not too difficult to code in thunkable - it’s called Roger Root method.
this link brings up a PDF describing several algorithms - Roger Root, its description, pseudo code and examples can be found towards the end.
this demo shows what it can do.
[…
1 Like
jared
August 25, 2023, 3:01pm
15
i woudl highly consider the algolia route. js. it’s dope. fairly inexpensive and has a generous free tier when used appropriately.
and the blocks can be as simple as this
with a design as simple as this
jahaan
August 25, 2023, 3:52pm
16
Honestly, I would, but I don’t want to pay anything. I’ll look it up though, see what I can do.
system
Closed
November 23, 2023, 3:53pm
17
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.