@@ -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 ) {
0 commit comments