GithubHelp home page GithubHelp logo

gerhobbelt / solr-node-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lbdremy/solr-node-client

0.0 0.0 0.0 774 KB

A solr client for node.js.

Home Page: http://lbdremy.github.com/solr-node-client

License: MIT License

JavaScript 100.00%

solr-node-client's Introduction

solr-client - a node.js solr client

Gitter NPM

Installation

Install the library with:

npm install --save solr-client

Documentation

Node.js version 6+ is supported. Solr versions 3-8 are supported.

Usage

// Load dependency
const solr = require('solr-client');

// Create a client
const client = solr.createClient();

// Add a new document
client.add({ id : 12, title_t : 'Hello' },function(err,obj){
   if (err) {
      console.log(err);
   } else {
      console.log('Solr response:', obj);
   }
});

Roadmap

v0.3.x - v0.x.x

  • Implement all features available in Solr 4 (SolrCloud API in particular)
  • Provide all low-level commands
  • Complete documentation

v1.0.x

  • First stable version
  • the API is frozen until v2.0.x, only new features and bug fixes can be introduced

Test

Tests are executed against a Solr instance in a Docker container. In order to execute them on latest supported Solr version, run:

npm run solr:current:start
npm test

If you want to execute them on oldest Solr version supported, run solr:legacy:start instead.

Test coverage

Before to be able to run the command below, you will need to install jscoverage available here https://github.com/visionmedia/node-jscoverage.

npm run-script test-cov

This command will generate a file named coverage.html, use your browser to visualize it.

Static analysis and complexity report

npm run-script report

Licence

(The MIT License)

Copyright 2011-2012 HipSnip Limited

Copyright 2013-2014 Rémy Loubradou

solr-node-client's People

Contributors

amercader avatar betolink avatar bharat-kishnani avatar cbarrientos-ias avatar chrisswaine avatar cleishm avatar coladaff avatar csabapalfi avatar dependabot[bot] avatar dmkelly avatar flawless2011 avatar gitter-badger avatar godong9 avatar jochenonline avatar julianlam avatar juzerali avatar kfitzgerald avatar kibertoad avatar lbdremy avatar lexmark-haputman avatar luketaverne avatar marc-portier avatar mennotammens avatar nfriedly avatar nicolasembleton avatar pablote avatar saschagoebel avatar sumanbh avatar tolgaakyuz avatar wvl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.