nodebb-plugin-solr
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,7 +7,7 @@ 'use strict'; | ||
if (data.uid && Array.isArray(data.uid) && data.uid.length) { | ||
newTerm += ' AND ( ' + data.uid.map(function(uid) { return 'uid_i:' + uid; }).join(' OR ') + ' )'; | ||
newTerm += (newTerm.length ? ' AND ' : '') + '( ' + data.uid.map(function(uid) { return 'uid_i:' + uid; }).join(' OR ') + ' )'; | ||
} | ||
if (data.cid && Array.isArray(data.cid) && data.cid.length) { | ||
newTerm += ' AND ( ' + data.cid.map(function(cid) { return 'cid_i:' + cid; }).join(' OR ') + ' )'; | ||
newTerm += (newTerm.length ? ' AND ' : '') + '( ' + data.cid.map(function(cid) { return 'cid_i:' + cid; }).join(' OR ') + ' )'; | ||
} | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "nodebb-plugin-solr", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Full-text searching for NodeBB using Apache Solr", | ||
@@ -5,0 +5,0 @@ "main": "library.js", |
29335