flora-solr
Advanced tools
Comparing version 0.2.0 to 0.3.0
12
index.js
@@ -41,3 +41,3 @@ 'use strict'; | ||
options = this.options.servers[server]; | ||
requestOpts = _.assign({}, options, { path: options.pathname + request.core + '/select' }); | ||
requestOpts = _.assign({}, options, { path: options.pathname + request.collection + '/select' }); | ||
@@ -56,2 +56,8 @@ if (request.attributes) params.push('fl=' + request.attributes.join(',')); | ||
params.push('q=' + queryString); | ||
if (request._explain) { | ||
request._explain.href = requestOpts.href; | ||
request._explain.params = params; | ||
} | ||
querySolr(requestOpts, params, callback); | ||
@@ -101,4 +107,4 @@ }; | ||
return filters.filter(function (filter) { // copy non-range query attributes | ||
return rangeQueryAttrs.indexOf(filter.attribute) === -1; | ||
}) | ||
return rangeQueryAttrs.indexOf(filter.attribute) === -1; | ||
}) | ||
.concat(rangeQueries.map(createRangeFilter)); | ||
@@ -105,0 +111,0 @@ } |
{ | ||
"name": "flora-solr", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Solr connection for Flora", | ||
@@ -34,23 +34,24 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=0.10.0", | ||
"iojs": ">=2.0" | ||
}, | ||
"dependencies": { | ||
"lodash": "3.8.x" | ||
"lodash": "^3.10.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "2.1.x", | ||
"eslint": "0.20.0", | ||
"grunt": "0.4.x", | ||
"chai": "^3.3.0", | ||
"eslint": "^1.5.1", | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "0.6.x", | ||
"grunt-eslint": "12.0.x", | ||
"grunt-mocha-istanbul": "^2.4.0", | ||
"grunt-mocha-test": "0.12.x", | ||
"istanbul": "0.3.x", | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-eslint": "^17.2.0", | ||
"grunt-mocha-istanbul": "^3.0.1", | ||
"grunt-mocha-test": "^0.12.7", | ||
"istanbul": "^0.3.21", | ||
"load-grunt-tasks": "^3.1.0", | ||
"mocha": "2.1.x", | ||
"mocha-bamboo-reporter": "*", | ||
"nock": "1.1.x", | ||
"mocha": "^2.3.3", | ||
"mocha-bamboo-reporter": "^1.1.0", | ||
"nock": "2.15.x", | ||
"when": "^3.7.3" | ||
} | ||
} |
@@ -1,4 +0,8 @@ | ||
Flora Solr-DataSource | ||
Flora Solr DataSource | ||
===================== | ||
[](https://travis-ci.org/godmodelabs/flora-solr) | ||
[](https://www.npmjs.com/package/flora-solr) | ||
[](https://david-dm.org/godmodelabs/flora-solr) | ||
Solr connection for [Flora](https://github.com/godmodelabs/flora). | ||
@@ -8,3 +12,4 @@ | ||
License | ||
======= | ||
MIT | ||
------- | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
11940
9
252
15
+ Addedlodash@3.10.1(transitive)
- Removedlodash@3.8.0(transitive)
Updatedlodash@^3.10.1