Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esClient.search({
- 'index': 'product',
- //'q': '*'+searchKeyword+'*' this is searching query
- 'body': {
- 'query': {
- 'prefix': {'_all': searchKeyword}
- }
- }
- },function(err, response){
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement