- 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:
Arno Kaimbacher 2020-06-02 16:11:07 +02:00
parent 3fd4a66fbf
commit c0e381ba3a
7 changed files with 315 additions and 249 deletions

View file

@ -3,7 +3,11 @@ import { Component, Prop } from 'vue-property-decorator';
import debounce from 'lodash/debounce';
import rdrApi from '../search-results/dataservice';
interface SolrSettings {
core: string;
host: string;
}
declare var SOLR: SolrSettings;
@Component({})
export default class VsInput extends Vue {
@ -27,6 +31,8 @@ export default class VsInput extends Vue {
selectedIndex: number = null;
selectedDisplay = null;
isFocussed: boolean = false;
solrCore: string = SOLR.core;
solrHost: string = SOLR.host;
// get results() {
// return this.items;
@ -127,7 +133,7 @@ export default class VsInput extends Vue {
async request() {
try {
var res = await rdrApi.searchTerm(this.display);
var res = await rdrApi.searchTerm(this.display, this.solrCore, this.solrHost);
this.error = null
this.results = res.response.docs;
this.loading = false;