Fix indexing of synced full-text content

This commit is contained in:
Dan Stillman 2017-04-21 02:59:24 -04:00
parent b077e1cd8c
commit 21a3bf8aa5
2 changed files with 2 additions and 2 deletions

View file

@ -958,7 +958,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){
return;
}
var itemID = item.id;
var currentVersion = this.getItemVersion(itemID)
var currentVersion = yield this.getItemVersion(itemID)
var processorCacheFile = this.getItemProcessorCacheFile(item);
var itemCacheFile = this.getItemCacheFile(item);

View file

@ -1781,7 +1781,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js");
yield Zotero.DB.executeTransaction(function* () {
return Zotero.Tags.purge();
});
Zotero.Fulltext.purgeUnusedWords();
yield Zotero.Fulltext.purgeUnusedWords();
yield Zotero.DB.executeTransaction(function* () {
return Zotero.Items.purge();
});