fixes search endpoint
This commit is contained in:
parent
5ba594e5d1
commit
2a0fc20f5d
|
@ -51,16 +51,13 @@ const store = new Vuex.Store({
|
||||||
siteSearch (context) {
|
siteSearch (context) {
|
||||||
console.log('new site search')
|
console.log('new site search')
|
||||||
var api_endpoint = '/api/collections/search?fulltext_search='
|
var api_endpoint = '/api/collections/search?fulltext_search='
|
||||||
var search_url = api_endpoint + context.getters.getSearchText;
|
axios.post(api_endpoint + context.getters.getSearchText, {})
|
||||||
axios.post(api_endpoint + '/change-index', {})
|
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log("remote")
|
console.log("remote")
|
||||||
console.log(response.data)
|
console.log(response.data)
|
||||||
|
|
||||||
var local_search_result = context.getters.searchLocalSiteData
|
var local_search_result = context.getters.searchLocalSiteData
|
||||||
console.log("local")
|
console.log("local")
|
||||||
console.log(local_search_result)
|
console.log(local_search_result)
|
||||||
|
|
||||||
var merged_results = Object.assign({},
|
var merged_results = Object.assign({},
|
||||||
local_search_result,
|
local_search_result,
|
||||||
response.data)
|
response.data)
|
||||||
|
|
Loading…
Reference in New Issue