How to stop duplication on instant search? jquery + AJAX + mongoosastic
问题 Currently The instant search that I'm using is working perfectly but , there is only one problem. Whenever I type "Chemical", it will show the query for Chemical Engineer Chemical Entrepreneur Checmical People But let say I decided to add "Engineer" after "Chemical", then the result will be Chemical Engineer Chemical Entrepreneur Checmical People Chemical Engineer Chemical Entrepreneur Checmical People Here's the code router.js router.post('/api/search/', function(req, res, next) { Product