fixes search endpoint
This commit is contained in:
parent
5ba594e5d1
commit
2a0fc20f5d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue