jeancroy / FuzzySearch

:mag: Fast autocomplete suggestion engine using approximate string matching
MIT License
194 stars 32 forks source link

How can i do it with post method? and mysql #28

Closed canomi closed 2 years ago

canomi commented 3 years ago

I need data from database via post method, so how can i do that? I've just try as follow: `` How can i define the keyword (query)? Thanks

jeancroy commented 3 years ago

How can I define the keyword (query) ?

So at the base, the thing is setup for a client side list of options.

When you do this source: fuzzyhound, we are really using the __ttAdapter interface. https://github.com/jeancroy/FuzzySearch/blob/master/src/optional/ui.js#L85

you can build your own interface that'll get access to the query, and eventually change source available for autocomplete.