0.7.1 • Published 6 years ago

solrjs v0.7.1

Weekly downloads
3
License
BSD-2-Clause
Repository
-
Last release
6 years ago

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
0.7.1

6 years ago

0.7.0

8 years ago

0.6.9

8 years ago

0.6.8

8 years ago

0.6.7

8 years ago

0.6.6

8 years ago

0.6.5

9 years ago

0.6.4

9 years ago

0.6.3

9 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago