diff --git a/src/App.vue b/src/App.vue index 0fe622af70bf4cd492fde04f2519b95f624b987e..6398a1bd88c6a8d75060179436bba923c0a3e463 100644 --- a/src/App.vue +++ b/src/App.vue @@ -91,7 +91,7 @@ export default { var self = this self.waiting = true self.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} - axios.get(api_endpoint + '/' + self.lang + '/_search?q=' + event.q) + axios.get(api_endpoint + '/' + self.lang + '/_search?q=' + event.q + ' ' + event.q + '*&sort=_score') .then(function(response){ self.$router.push('/' + self.lang + '/search?q=' + event.q) self.search_results = response.data.hits.hits @@ -125,7 +125,7 @@ export default { this.lang = this.$route.params.lang || 'nob' var self = this; if(this.$route.query.q) { - axios.get(api_endpoint + '/' + self.lang + '/_search?q=' + self.$route.query.q + '&sort=_score') + axios.get(api_endpoint + '/' + self.lang + '/_search?q=' + self.$route.query.q + ' ' + self.$route.query.q + '*&sort=_score') .then(function(response){ self.search_results = response.data.hits.hits self.waiting = false