Skip to content

Commit

Permalink
Merge pull request #166 from ModelSEED/solr_staging_spring23
Browse files Browse the repository at this point in the history
Solr staging spring23
  • Loading branch information
samseaver authored Jan 19, 2024
2 parents 1dec8e7 + 09f55ba commit def79c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/services/biochem.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function($http, $q, config, $log) {

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

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

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

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

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

if (opts) {
Expand Down
2 changes: 1 addition & 1 deletion app/services/ms-solr.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function($http, $q, $rootScope, config, Auth) {

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

if (opts) {
var limit = opts.limit ? opts.limit : null,
Expand Down

0 comments on commit def79c8

Please sign in to comment.