#solr-client - a node.js solr client
##Install
npm install solr-client
##Usage
// Load dependency
var solr = require('solr-client');
// Create a client
var client = solr.createClient();
// Add a new document
client.add({ id : 12, title_t : 'Hello' },function(err,json){
if(err){
console.log(err);
}else{
console.log('JSON response:' + json);
}
});
##Commands & API supported
- commands: query, delete, update, commit, rollback, optimize, ping
- Lucene query / DisMax query
- Grouping / Field Collapsing. (Apache Solr version must be >= 3.3)
- Facet
- HTTP Basic Access Authentication
##Test Before to run the test, start the Solr server.
npm test
##Licence (The MIT License) Copyright 2011-2012 HipSnip Limited