- composer updates
- dynamical connection string to solr for the search via .env-file: settings for SOLR_HOST und SOLR_CORE
This commit is contained in:
parent
3fd4a66fbf
commit
c0e381ba3a
7 changed files with 315 additions and 249 deletions
|
@ -14,11 +14,12 @@ var SOLR_CONFIG = {
|
|||
export default {
|
||||
|
||||
|
||||
async search(term: string, filterItems: Object, start?: string): Promise<any> {
|
||||
async search(term: string, filterItems: Object, solrCore: string, solrHost: string, start?: string): Promise<any> {
|
||||
// solr endpoint
|
||||
// const host = 'http://voyagerdemo.com/';
|
||||
const host = 'https://repository.geologie.ac.at/';
|
||||
const path = 'solr/rdr_data/select?';
|
||||
//const host = 'https://www.tethys.at/';
|
||||
const host = 'https://' + solrHost;
|
||||
const path = '/solr/' + solrCore + '/select?';
|
||||
var base = host + path;
|
||||
|
||||
//const fields = 'id,server_date_published,abstract_output,title_output,title_additional,author,subject'; // fields we want returned
|
||||
|
@ -73,11 +74,12 @@ export default {
|
|||
},
|
||||
|
||||
// for the autocomplete search
|
||||
async searchTerm(term: string): Promise<any> {
|
||||
async searchTerm(term: string, solrCore: string, solrHost: string): Promise<any> {
|
||||
// solr endpoint
|
||||
// const host = 'http://voyagerdemo.com/';
|
||||
const host = 'https://repository.geologie.ac.at/';
|
||||
const path = 'solr/rdr_data/select?';
|
||||
// const host = 'https://www.tethys.at/';''
|
||||
const host = 'https://' + solrHost;
|
||||
const path = '/solr/' + solrCore + '/select?';
|
||||
var base = host + path;
|
||||
|
||||
//const fields = 'id,server_date_published,abstract_output,title_output,title_additional,author,subject'; // fields we want returned
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue