Skip to content

Commit def79c8

Browse files
authored
Merge pull request #166 from ModelSEED/solr_staging_spring23
Solr staging spring23
2 parents 1dec8e7 + 09f55ba commit def79c8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/services/biochem.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function($http, $q, config, $log) {
1010

1111
this.get = function(collection, opts) {
1212
var cache = true;
13-
var url = endpoint+collection+'/?http_accept=application/solr+json'
13+
var url = endpoint+collection+'_staging/?http_accept=application/solr+json'
1414

1515
if (opts) {
1616
//var query = opts.query ? encodeURI(opts.query).replace(/\(/g, '%28') : null,
@@ -124,7 +124,7 @@ function($http, $q, config, $log) {
124124
/*************Begin translating the RQL syntax to Solr query syntax******************/
125125
this.get_solr = function(collection, opts) {
126126
var cache = true;
127-
var url = endpoint+collection+'/select?wt=json'
127+
var url = endpoint+collection+'_staging/select?wt=json'
128128

129129
if (opts) {
130130
var query = opts.query ? opts.query.replace(/\(/g, '%28') : null,
@@ -213,7 +213,7 @@ function($http, $q, config, $log) {
213213
})
214214
}
215215
this.getRxn_solr = function(ids, opts) {
216-
var url = endpoint+'reactions/select?wt=json';
216+
var url = endpoint+'reactions_staging/select?wt=json';
217217

218218
if (opts && 'select' in opts) {
219219
if (Array.isArray(opts.select))
@@ -232,7 +232,7 @@ function($http, $q, config, $log) {
232232
})
233233
}
234234
this.getCpd_solr = function(ids) {
235-
var url = endpoint+'compounds/select?wt=json';
235+
var url = endpoint+'compounds_staging/select?wt=json';
236236

237237
if (Array.isArray(ids))
238238
url += '&q=id:('+ids.join(' OR ')+ ')';
@@ -244,7 +244,7 @@ function($http, $q, config, $log) {
244244
})
245245
}
246246
this.findReactions_solr = function(cpd, opts, flds='id,equation,name,definition') {
247-
var url = endpoint+'reactions/select?wt=json';
247+
var url = endpoint+'reactions_staging/select?wt=json';
248248
url += '&q=equation:*'+cpd+'*&fl='+flds;
249249

250250
if (opts) {

app/services/ms-solr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function($http, $q, $rootScope, config, Auth) {
3232

3333
this.getUrl = function(core, opts) {
3434
//var url = "http://0.0.0.0:8983/solr/"+core+'/select?wt=json'
35-
var url = endpoint+core+'/select?wt=json'
35+
var url = endpoint+core+'_staging/select?wt=json'
3636

3737
if (opts) {
3838
var limit = opts.limit ? opts.limit : null,

0 commit comments

Comments
 (0)