Last active
August 29, 2015 14:26
-
-
Save bobylito/67173d47abe0e26b3fcd to your computer and use it in GitHub Desktop.
Algolia search with '
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var algoliasearch = require('algoliasearch'); | |
var algoliasearchHelper = require('algoliasearch-helper'); | |
var client = algoliasearch('HJJNGIYUXM', '5b51ef15f04155d38a3afe69155ac0d2'); | |
var helper = algoliasearchHelper(client, 'seller14d05f716649588597000000',{ | |
facets:['tags'] | |
}); | |
helper.on('result', function(content) { | |
console.log( JSON.stringify( content ) ); | |
}); | |
helper.on('error', function(err) { | |
console.log(error); | |
}); | |
helper.addRefine('tags', 'can't find anywhere'); | |
helper.search(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "refine-facet-issue", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"author": "algolia <[email protected]>", | |
"license": "MIT", | |
"dependencies": { | |
"algoliasearch": "3.7.5", | |
"algoliasearch-helper": "2.1.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment