Do not force index update when configure backend on plugin load

- Backend can handle incremental updates
- Avoid khoj usability delay by avoiding recomputed everytime vault opened
This commit is contained in:
Debanjum Singh Solanky 2023-01-11 17:17:08 -03:00
parent 3fe5ce2721
commit 51ea6d9c9b

View file

@ -108,7 +108,7 @@ export async function updateKhojBackend(khojUrl: string, khojConfig: Object) {
// Save khojConfig on khoj backend at khojConfigUrl
await request(requestContent)
// Refresh khoj search index after updating config
.then(_ => request(`${khojUrl}/api/update?t=markdown&force=true`));
.then(_ => request(`${khojUrl}/api/update?t=markdown`));
}
function getIndexDirectoryFromBackendConfig(khojConfig: any) {