Solr client for node.js

A solr client for indexing, adding, deleting,committing and searching documents within an Apache Solr installation (version>=3.2).

Latest Update from Github

Loading...
Loading...

Features

  • Commands supported: search(select), add, delete, update, commit, rollback, optimize, ping, real-time get, prepare commit, soft commit, arbitrary search handler (i.e: mlt, luke ...)
  • 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
  • Over HTTPS as well
  • Use json-bigint to handle correctly numbers too large for Javascript Number such as the values of the fields *l and _version\. By default json-bigint library is not used because the performance difference compared to the native JSON library is too important with "large" chunk of JSON (https://github.com/lbdremy/solr-node-client/issues/114#issuecomment-54165595), but you want to enable it if you use the Optimistic Concurreny feature available in Solr 4.x, along with RealTime Get and Atomic Updates features because they use the _version_ field. In order to enable it do var client = solr.createClient({ bigint : true}) or directly on the client instance client.options.bigint = true.

Installation

Install with npm.

npm install solr-client

Contributors

 project  : solr-client
 repo age : 3 years, 1 month
 active   : 91 days
 commits  : 282
 files    : 113
 authors  :
   242  Remy Loubradou          85.8%
    17  lbdremy                 6.0%
     5  Marc Portier            1.8%
     4  Tolga Akyüz             1.4%
     2  Chris Leishman          0.7%
     2  Jochen Brüggemann       0.7%
     1  Bharat Kishnani         0.4%
     1  David Kelly             0.4%
     1  Dominic Barnes          0.4%
     1  Jos Shepherd            0.4%
     1  Juzer Ali               0.4%
     1  Pablo Compagni          0.4%
     1  Thorsten Scherler       0.4%
     1  Wayne Larsen            0.4%
     1  amercader               0.4%
     1  patison                 0.4%

Getting Help

If you have questions or issues, please use Github Issues.

Licence

(The MIT License)

Copyright 2011-2012 HipSnip Limited

Copyright 2013-2014 Rémy Loubradou

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.