# solrjs

> SOLR Client for Node

Latest version **0.7.1** (published 2018-01-18) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install solrjs
pnpm add solrjs
yarn add solrjs
bun add solrjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2018-01-18 |
| First published | 2014-10-20 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Dustin Machi |
| Maintainers | dmachivbi |

## Links

- npm: https://www.npmjs.com/package/solrjs
- npm.io page: https://npm.io/package/solrjs

## Dependencies (8)

- [rql](https://npm.io/package/rql.md) *
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [request](https://npm.io/package/request.md) >2.47.0
- [clarinet](https://npm.io/package/clarinet.md) ^0.11.0
- [JSONStream](https://npm.io/package/JSONStream.md) ^1.1.1
- [promised-io](https://npm.io/package/promised-io.md) ^0.3.5
- [dojo-declare](https://npm.io/package/dojo-declare.md) *
- [event-stream](https://npm.io/package/event-stream.md) ^3.3.2

## Recent versions

- 0.7.1 (latest) — 2018-01-18
- 0.7.0 — 2016-05-25
- 0.6.9 — 2016-05-18
- 0.6.8 — 2016-03-02
- 0.6.7 — 2016-03-02
- 0.6.6 — 2015-11-23
- 0.6.5 — 2015-10-28
- 0.6.4 — 2015-04-30
- 0.6.3 — 2015-01-07
- 0.6.2 — 2015-01-07
- 0.6.1 — 2015-01-07
- 0.6.0 — 2015-01-07
- 0.5.2 — 2014-11-05
- 0.5.1 — 2014-10-20
- 0.5.0 — 2014-10-20

## README

# solrjs

Simple Solr Client for Node

The client provides provide simple access to the SOLR HTTP API for querying, get (realtime get or via search), and updates. 

Additional, the include rql module allows SOLR queries to be generated from RQL Queries and to use the RQL Query builder for chained
query contruction

## Installation

	> npm install solrjs

## Example Usage

	var solr = require("solrjs");

	var client = new solr("http://localhost:8983/solr",{});

	client.query("q=*:*").then(function(results){
		console.log("Results: ", results);
	},function(err){
		console.error("Error in Query: ", err);
	});

## Using the Query Builder
	var Query = require("solrjs/rql");

	// from an rql string
	var q = new Query("?eq(foo,bar)&sort(-foo)").toSolr();

	// using the builder
	var q = new Query().eq('foo','bar').sort('-foo').toSolr();

	client.query(q).then(function(results){
		console.log("Results: ", results);
	});


## Client API

- query
- get
- update

---
_Source: https://npm.io/package/solrjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
