fixes search endpoint

This commit is contained in:
buttle 2022-03-15 22:22:08 +01:00
parent 5ba594e5d1
commit 2a0fc20f5d
1 changed files with 1 additions and 4 deletions

View File

@ -51,16 +51,13 @@ const store = new Vuex.Store({
siteSearch (context) {
console.log('new site search')
var api_endpoint = '/api/collections/search?fulltext_search='
var search_url = api_endpoint + context.getters.getSearchText;
axios.post(api_endpoint + '/change-index', {})
axios.post(api_endpoint + context.getters.getSearchText, {})
.then(function (response) {
console.log("remote")
console.log(response.data)
var local_search_result = context.getters.searchLocalSiteData
console.log("local")
console.log(local_search_result)
var merged_results = Object.assign({},
local_search_result,
response.data)