{"_id":"elasticsearchclient","_rev":"26-25bc17b3c57b25945bd4bc0f4499b42e","name":"elasticsearchclient","description":"A client for Elastic Search","dist-tags":{"latest":"0.5.3"},"versions":{"0.2.0":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","version":"0.2.0","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"_id":"elasticsearchclient@0.2.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"d2b1a2a9f55c2c9fe28b06073ace585f5c0f1c75","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.2.0.tgz","integrity":"sha512-OeC/NiCJiIGhMz94n4KocBi3DqH3UCFIgHC8fLWhrrrxAmDYZrJY9I22RTSVgy5arrjCwLAUrBcAJAxLzyQq7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXskBkGiDJFVswKMkfLBwp/n5NAOumJJmUsyaUYMIaDAIgVEUAacvELoJyFUotI2Lcl8ZXBMUQGRlllbetBgbzM1Y="}]},"readme":"","maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}],"directories":{}},"0.1.8":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","version":"0.1.8","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"_id":"elasticsearchclient@0.1.8","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"8053320a9e72053165ca26960cb65c87d36584b4","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.1.8.tgz","integrity":"sha512-CxADLscZisjlvKZuHUbGW6RP6gw10opQ/91RgUaL3iBzvxttA1u0hL3uLVoYvVuly1TeKbY4U6WnYOVRQVQqeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdXA9Pq/fGRlo8ICckyvERn7FicGcUwaws335URcxnjwIgRbknwEbeSIZHXaJ8u+sEFM26qVvg3BSZJfDtURyKJTc="}]},"readme":"","maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}],"directories":{}},"0.2.1":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","version":"0.2.1","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"_id":"elasticsearchclient@0.2.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"408071b9f7aa3acdd0a909e17e5f48a8fc4d59bd","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.2.1.tgz","integrity":"sha512-jO53rL16ApjoJ1mLMuD3oZ3Kk2yetDuLG0Q5fnafPQpdTABAT0ncxdUg4tC/2LoBls/1RFTo52bCsR/OgiotjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2+FfImB1lB3wkaOprTO8WHdl6Q8fbu52lSd9h8Gd4JgIhAImBCHAlOQ9+rovGEFtViF3ntdUwOaWE7jvDCoTO4uj/"}]},"readme":"","maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.2.2":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","version":"0.2.2","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"_id":"elasticsearchclient@0.2.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"fec3a5e5ca7ebc05536e6fba45a1cd69605a7144","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.2.2.tgz","integrity":"sha512-HbvEzoUxTJfJUTf3AUw0x6r/EXAkn4OssDyFWB0+DaHnHbVeFmDkPz43y+pSlSPbW2oXWgXYrzzf+cnZAYh04g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZ/LOdooWIpuEfwxQABgGfxRg6RHKxlG+jPTWNhV/TUAiEA84mamQovj8m0wyeakkTdJlgR+j2HTB7fpPmOVdkVfTU="}]},"readme":"Elastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n};\n```\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n            .on('data', function(data) {\n                console.log(JSON.parse(data))\n            })\n            .on('done', function(){\n                //always returns 0 right now\n            })\n            .on('error', function(error){\n                console.log(error)\n            })\n            .exec()\n\nelasticSearchClient.index('my_index_name', 'my_type_name', {'name':'name', id:\"1111\"})\n            .on('data', function(data) {\n                console.log(data)\n            })\n            .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.2.3":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","version":"0.2.3","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{"mocha":"1.7.4","chai":"*"},"scripts":{"test":"./node_modules/.bin/mocha"},"readme":"[![build status](https://secure.travis-ci.org/phillro/node-elasticsearch-client.png)](http://travis-ci.org/phillro/node-elasticsearch-client)\nElastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n};\n```\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n            .on('data', function(data) {\n                console.log(JSON.parse(data))\n            })\n            .on('done', function(){\n                //always returns 0 right now\n            })\n            .on('error', function(error){\n                console.log(error)\n            })\n            .exec()\n\nelasticSearchClient.index('my_index_name', 'my_type_name', {'name':'name', id:\"1111\"})\n            .on('data', function(data) {\n                console.log(data)\n            })\n            .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","readmeFilename":"README.md","_id":"elasticsearchclient@0.2.3","dist":{"shasum":"e10637a7141c20c8a46ae3bf8004ab684a130e21","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.2.3.tgz","integrity":"sha512-lhZa2J3xeNxwMl1aiz6cXcR+bIkdI1RXOD+IOsXVLWCRdI6jmSVTYPQrZciDEAmwD7IalW/Mi0PAVpcTQMMMag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF79swlZb5YfhkGtZpjzYwy0wqlU5rMBAGxqAsVOMmb/AiBqfixxzbJXv717sZJLqN5+2BMQIoGY3QNoLT4CvKdZYg=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.3.0":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","keywords":["elasticsearch","elastic","search","client"],"version":"0.3.0","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{"mocha":"1.7.4","chai":"*"},"scripts":{"test":"make test","coverage":"make test-cov --no-print-directory"},"readme":"[![build status](https://secure.travis-ci.org/phillro/node-elasticsearch-client.png)](http://travis-ci.org/phillro/node-elasticsearch-client)\nElastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n};\n```\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n    .on('data', function(data) {\n        console.log(JSON.parse(data))\n    })\n    .on('done', function(){\n        //always returns 0 right now\n    })\n    .on('error', function(error){\n        console.log(error)\n    })\n    .exec()\n\nelasticSearchClient.index('my_index_name', 'my_type_name', /* _id (optional) */'1111', {'name':'name'})\n    .on('data', function(data) {\n        console.log(data)\n    })\n    .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n## Code coverage\n\nRun code coverage by executing:\n\n\t$npm run-script coverage\n\n*Requires [visionmedia/jscoverage](https://github.com/visionmedia/node-jscoverage)\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"elasticsearchclient@0.3.0","dist":{"shasum":"049020f7f5f905766acfb742551aa1439aa56181","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.3.0.tgz","integrity":"sha512-JDssHKx3WWkrdqEhThp//dYbAH+Neh+/TxWu8IA0n4JYwTDVgRAef7nrlkl/gWG26YhUxAU0e51V/eJ6euzUjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHHlTTF4i/XCffChrldLhxoBJnWMs0DsynC28XSnqt9AiAiVFHdpmu+kqg/jOedzl1EtEKsSB1V41vNcJJh1KY29g=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.4.0":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","keywords":["elasticsearch","elastic","search","client"],"version":"0.4.0","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{"mocha":"1.7.4","chai":"*"},"scripts":{"test":"make test","coverage":"make test-cov --no-print-directory"},"readme":"[![build status](https://secure.travis-ci.org/phillro/node-elasticsearch-client.png)](http://travis-ci.org/phillro/node-elasticsearch-client)\nElastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n    pathPrefix:'optional pathPrefix',\n    secure: true||false\n};\n```\n\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n    .on('data', function(data) {\n        console.log(JSON.parse(data))\n    })\n    .on('done', function(){\n        //always returns 0 right now\n    })\n    .on('error', function(error){\n        console.log(error)\n    })\n    .exec()\n\n//Canonical search\n elasticSearchClient.search('my_index_name', 'my_type_name', qryObj, function(err, data){\n    console.log(JSON.parse(data))\n })\n\n//Search call as a reusable object with a canonical callback\nmySearchCall = elasticSearchClient.search('my_index_name', 'my_type_name', qryObj);\n//Do it once\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n//Do it twice\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n\n\n\nelasticSearchClient.index(indexName, typeName, document, id, options)\n    .on('data', function(data) {\n        console.log(data)\n    })\n    .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n## Code coverage\n\nRun code coverage by executing:\n\n\t$npm run-script coverage\n\n*Requires [visionmedia/jscoverage](https://github.com/visionmedia/node-jscoverage)\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"elasticsearchclient@0.4.0","dist":{"shasum":"0eae9859f95dcd236e1860d21511cfbc36dcee9d","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.4.0.tgz","integrity":"sha512-/Rr0RJB2tx9IghykFEJlaSn99EVLT5+bdrzFk3vJzJaaWfogVGB+iJ8Yr6QlICVa4FbgDVZ6jQZzuoYuUOLV8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmzwvZnziGzT1IeRL5bgRQyInD4IQ6xI4fNbKMwa1azgIhAI0kHgTAGW3ffGhslzBFg5zBU8tvRA8t12eQ9d8LAReU"}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.5.2":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","keywords":["elasticsearch","elastic","search","client"],"version":"0.5.2","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{"mocha":"1.7.4","chai":"*"},"scripts":{"test":"make test","coverage":"make test-cov --no-print-directory"},"readme":"[![build status](https://secure.travis-ci.org/phillro/node-elasticsearch-client.png)](http://travis-ci.org/phillro/node-elasticsearch-client)\nElastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n    pathPrefix:'optional pathPrefix',\n    secure: true||false,\n    //Optional basic HTTP Auth\n    auth: {\n   \tusername: process.env.ES_USERNAME,\n    \tpassword: process.env.ES_PASSWORD\n  }\n};\n\n\n\n```\n\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n    .on('data', function(data) {\n        console.log(JSON.parse(data))\n    })\n    .on('done', function(){\n        //always returns 0 right now\n    })\n    .on('error', function(error){\n        console.log(error)\n    })\n    .exec()\n\n//Canonical search\n elasticSearchClient.search('my_index_name', 'my_type_name', qryObj, function(err, data){\n    console.log(JSON.parse(data))\n })\n\n//Search call as a reusable object with a canonical callback\nmySearchCall = elasticSearchClient.search('my_index_name', 'my_type_name', qryObj);\n//Do it once\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n//Do it twice\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n\n\n\nelasticSearchClient.index(indexName, typeName, document, id, options)\n    .on('data', function(data) {\n        console.log(data)\n    })\n    .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n## Code coverage\n\nRun code coverage by executing:\n\n\t$npm run-script coverage\n\n*Requires [visionmedia/jscoverage](https://github.com/visionmedia/node-jscoverage)\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"elasticsearchclient@0.5.2","dist":{"shasum":"5f2dbf11e06832726bcc5dd4166601c3a19183e4","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.5.2.tgz","integrity":"sha512-rHHgXLVE9Fob0p7nL1/sHeWMJlsfCfg+3Lw++EzvViLoJr+w41pYFzV71CgollSaau+3KXCKebT/WgdXb9qM8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpWM8O+LdE1fSA8Djo6jEYpPApRV+WqcBXhYfQHQDC+AiAVwOXlWQMULlYYguWzOnPEOorJTx1JJUNXviTLg2D0ZQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]},"0.5.3":{"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"name":"elasticsearchclient","description":"A client for Elastic Search","keywords":["elasticsearch","elastic","search","client"],"version":"0.5.3","repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"main":"./index.js","engines":{"node":">= 0.3.0"},"dependencies":{},"devDependencies":{"mocha":"1.7.4","chai":"*"},"scripts":{"test":"make test","coverage":"make test-cov --no-print-directory"},"readme":"[![build status](https://secure.travis-ci.org/phillro/node-elasticsearch-client.png)](http://travis-ci.org/phillro/node-elasticsearch-client)\nElastic Search Client\n=====================\n\nA node.js client for elasticsearch (http://www.elasticsearch.com). \n\n## Installation\n\n```\nnpm install elasticsearchclient\n```\n\n## Executing commands on elasticsearch\n\n```javascript\nElasticSearchClient = require('elasticsearchclient');\n\nvar serverOptions = {\n    host: 'localhost',\n    port: 9200,\n    pathPrefix:'optional pathPrefix',\n    secure: true||false,\n    //Optional basic HTTP Auth\n    auth: {\n   \tusername: process.env.ES_USERNAME,\n    \tpassword: process.env.ES_PASSWORD\n  }\n};\n\n\n\n```\n\n\nOR specify multiple hosts\n\n```javascript\nvar serverOptions = {\n    hosts:[\n        {\n            host: 'localhost',\n            port: 9200\n        }]\n};\n```\n\n```javascript\nvar elasticSearchClient = new ElasticSearchClient(serverOptions);\n\nvar qryObj = {\n    field : term\n}\n\nelasticSearchClient.search('my_index_name', 'my_type_name', qryObj)\n    .on('data', function(data) {\n        console.log(JSON.parse(data))\n    })\n    .on('done', function(){\n        //always returns 0 right now\n    })\n    .on('error', function(error){\n        console.log(error)\n    })\n    .exec()\n\n//Canonical search\n elasticSearchClient.search('my_index_name', 'my_type_name', qryObj, function(err, data){\n    console.log(JSON.parse(data))\n })\n\n//Search call as a reusable object with a canonical callback\nmySearchCall = elasticSearchClient.search('my_index_name', 'my_type_name', qryObj);\n//Do it once\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n//Do it twice\nmySearchCall.exec(function(err, data){\n    console.log(JSON.parse(data))\n})\n\n\n\nelasticSearchClient.index(indexName, typeName, document, id, options)\n    .on('data', function(data) {\n        console.log(data)\n    })\n    .exec()\n\n//Bulk index example\nvar commands = []\ncommands.push({ \"index\" : { \"_index\" :'my_index_name', \"_type\" : \"my_type_name\"} })\ncommands.push({field1:'value',field2:'value'})\n\n\n    elasticSearchClient.bulk(commands, {})\n            .on('data', function(data) {})\n            .on('done', function(done){})\n            .on('error', function(error){})\n            .exec();\n\n```\n\nTwitter stream:\nSeems to be a problem in the es with deleting streams. May require a node restart for modifications/deletes to take effect\n\n\n```javascript\nelasticSearchClient.createOrModifyTwitterRiver(riverName, riverData)\n    .on('data', function (data) {\n        console.log(data)\n        assert.ok(JSON.parse(data).ok)\n    })\n    .on('error',\n    function (error) {\n        console.log(error)\n        assert.ok(false)\n    }).exec()\n```\n## Code coverage\n\nRun code coverage by executing:\n\n\t$npm run-script coverage\n\n*Requires [visionmedia/jscoverage](https://github.com/visionmedia/node-jscoverage)\n\n## What can i do?\n\nMost of the API (http://www.elasticsearch.org/guide/reference/api/) is implemented. \n\n## License\n\nCopyright (c) 2011 Phillip Rosen\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"elasticsearchclient@0.5.3","dist":{"shasum":"5b9b6199b95289658586f8dc7fd78a3117e09d78","tarball":"https://registry.npmjs.org/elasticsearchclient/-/elasticsearchclient-0.5.3.tgz","integrity":"sha512-Ka13+BjD0H8l4SpPlqcFuIaGr+Bjwq9X6rrueFpIdpFmun3Lx18MkVhyjV1e/JcbW1F4GGbtGw2JyO3R397KGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgKsyJZqK//a5uLl7QOZDtjza7hjmODNjf+Q/j4JkS0QIhAIJjDsRcogsl/2gRMYywZvFzXQ2ZXaDFgfGBMQa2rVsw"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"phill.rosen","email":"phill.rosen@gmail.com"},"maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}]}},"readme":"","maintainers":[{"name":"phill.rosen","email":"phill.rosen@gmail.com"}],"time":{"modified":"2022-06-16T07:16:21.773Z","created":"2012-03-11T22:16:55.988Z","0.2.0":"2012-03-11T22:17:01.047Z","0.1.8":"2012-03-13T20:25:10.331Z","0.2.1":"2012-06-14T18:57:54.837Z","0.2.2":"2012-08-02T20:17:57.084Z","0.2.3":"2013-01-23T15:19:52.488Z","0.3.0":"2013-02-06T21:59:29.501Z","0.4.0":"2013-03-03T23:57:45.877Z","0.5.2":"2013-07-08T19:26:12.072Z","0.5.3":"2013-07-08T19:28:20.222Z"},"author":{"name":"Phillip Rosen","email":"phill.rosen@gmail.com"},"repository":{"type":"git","url":"git://github.com/phillro/node-elasticsearch-client.git"},"users":{"awaterma":true}}