Skip to content

Repository files navigation

#solr-client - a node.js solr client

Dependency Status

NPM

##Install

npm install solr-client

##Features

  • Commands supported: search(select), index, delete, update, commit, rollback, optimize, ping
  • Lucene query / DisMax query
  • Grouping / Field Collapsing. (Apache Solr version must be >= 3.3)
  • Convenients methods for querying with Facet, MoreLikeThis
  • HTTP Basic Access Authentication

##Documentation See the website at http://lbdremy.github.com/solr-node-client/.

##Usage

// Load dependencyvarsolr=require('solr-client');// Create a clientvarclient=solr.createClient();// Add a new documentclient.add({id : 12,title_t : 'Hello'},function(err,obj){if(err){console.log(err);}else{console.log('Solr response:'+obj);}});

##Test

npmtest

HTTP requests and responses expected are mocked thanks to nock. To disable the mocking go to test/config.json and set mocked to false.

##Licence (The MIT License) Copyright 2011-2012 HipSnip Limited

About

A solr client for node.js.

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages