@@ -10,7 +10,7 @@ function($http, $q, config, $log) {
10
10
11
11
this . get = function ( collection , opts ) {
12
12
var cache = true ;
13
- var url = endpoint + collection + '/?http_accept=application/solr+json'
13
+ var url = endpoint + collection + '_staging /?http_accept=application/solr+json'
14
14
15
15
if ( opts ) {
16
16
//var query = opts.query ? encodeURI(opts.query).replace(/\(/g, '%28') : null,
@@ -124,7 +124,7 @@ function($http, $q, config, $log) {
124
124
/*************Begin translating the RQL syntax to Solr query syntax******************/
125
125
this . get_solr = function ( collection , opts ) {
126
126
var cache = true ;
127
- var url = endpoint + collection + '/select?wt=json'
127
+ var url = endpoint + collection + '_staging /select?wt=json'
128
128
129
129
if ( opts ) {
130
130
var query = opts . query ? opts . query . replace ( / \( / g, '%28' ) : null ,
@@ -213,7 +213,7 @@ function($http, $q, config, $log) {
213
213
} )
214
214
}
215
215
this . getRxn_solr = function ( ids , opts ) {
216
- var url = endpoint + 'reactions /select?wt=json' ;
216
+ var url = endpoint + 'reactions_staging /select?wt=json' ;
217
217
218
218
if ( opts && 'select' in opts ) {
219
219
if ( Array . isArray ( opts . select ) )
@@ -232,7 +232,7 @@ function($http, $q, config, $log) {
232
232
} )
233
233
}
234
234
this . getCpd_solr = function ( ids ) {
235
- var url = endpoint + 'compounds /select?wt=json' ;
235
+ var url = endpoint + 'compounds_staging /select?wt=json' ;
236
236
237
237
if ( Array . isArray ( ids ) )
238
238
url += '&q=id:(' + ids . join ( ' OR ' ) + ')' ;
@@ -244,7 +244,7 @@ function($http, $q, config, $log) {
244
244
} )
245
245
}
246
246
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' ;
248
248
url += '&q=equation:*' + cpd + '*&fl=' + flds ;
249
249
250
250
if ( opts ) {
0 commit comments