Fix rebuilding of full-text index
This commit is contained in:
parent
08d322932d
commit
4fb8f44d01
1 changed files with 6 additions and 2 deletions
|
@ -1652,8 +1652,12 @@ Zotero.Fulltext = Zotero.FullText = new function(){
|
||||||
var items = yield Zotero.DB.columnQueryAsync(sql, params);
|
var items = yield Zotero.DB.columnQueryAsync(sql, params);
|
||||||
if (items) {
|
if (items) {
|
||||||
yield Zotero.DB.executeTransaction(function* () {
|
yield Zotero.DB.executeTransaction(function* () {
|
||||||
yield Zotero.DB.queryAsync("DELETE FROM fulltextItemWords WHERE itemID IN (" + sql + ")");
|
yield Zotero.DB.queryAsync(
|
||||||
yield Zotero.DB.queryAsync("DELETE FROM fulltextItems WHERE itemID IN (" + sql + ")");
|
"DELETE FROM fulltextItemWords WHERE itemID IN (" + sql + ")", params
|
||||||
|
);
|
||||||
|
yield Zotero.DB.queryAsync(
|
||||||
|
"DELETE FROM fulltextItems WHERE itemID IN (" + sql + ")", params
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
yield this.indexItems(items, false, true);
|
yield this.indexItems(items, false, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue