mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Rebuild search index
This commit is contained in:
parent
30315a36c7
commit
df0a13b6ed
18 changed files with 960 additions and 669 deletions
|
@ -70,7 +70,7 @@ export default Service.extend({
|
|||
return response;
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Saves auth config for Documize instance.
|
||||
saveAuthConfig(config) {
|
||||
|
@ -93,4 +93,24 @@ export default Service.extend({
|
|||
});
|
||||
}
|
||||
},
|
||||
|
||||
// Returns product license.
|
||||
searchStatus() {
|
||||
if (this.get('sessionService.isGlobalAdmin')) {
|
||||
return this.get('ajax').request(`global/search/status`, {
|
||||
method: 'GET',
|
||||
}).then((response) => {
|
||||
return response;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// Saves product license.
|
||||
reindex() {
|
||||
if (this.get('sessionService.isGlobalAdmin')) {
|
||||
return this.get('ajax').request(`global/search/reindex`, {
|
||||
method: 'POST',
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue