Skip to content

Instantly share code, notes, and snippets.

@leofab86 leofab86/server.js
Last active May 19, 2019

Embed
What would you like to do?
Fuzzy search autocomplete v1.2.0
app.route('/prep-staging/testSearch')
.post(bodyParser.json(), (req, res) => {
const {data, searchTerm} = req.body
const engine = new SearchEngine(data)
const searchResults = engine.search(searchTerm)
res.send({searchResult})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.