Great article! Remember to add error first management in search function:
functionsearch(search_string,func){pool.query("SELECT * FROM university WHERE fts @@ to_tsquery('english',$1)",[search_string],function(err,result){if(err){func(err)}else{func(null,result.rows)}});}
Thank you for your awesome article. I have worked with dedicated full text search database called Apache Solr. Thanks to you I know that I can use that feature in a relational DB.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article! Remember to add error first management in search function:
And then, when you call the function:
Thanks!
Yes, i adding "error management"
Thank you for your awesome article. I have worked with dedicated full text search database called Apache Solr. Thanks to you I know that I can use that feature in a relational DB.