8000 GitHub - dineshkummarc/solr-node-client: A solr client for node.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dineshkummarc/solr-node-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A solr client for node.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0