0.7.1 • Published 7 years ago

solrjs v0.7.1

Weekly downloads
3
License
BSD-2-Clause
Repository
-
Last release
7 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

7 years ago

0.7.0

9 years ago

0.6.9

9 years ago

0.6.8

9 years ago

0.6.7

9 years ago

0.6.6

9 years ago

0.6.5

9 years ago

0.6.4

10 years ago

0.6.3

10 years ago

0.6.2

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago