Consider fulltextItems with SYNC_STATE_MISSING as unindexed
The items will still match full-text word searches, but they won't match phrase searches (because those require cache files for non-text attachments) and the full-text won't sync to other computers, so they should really be reindexed.
This commit is contained in:
parent
67ccb632b4
commit
c110e64293
2 changed files with 24 additions and 15 deletions
|
@ -242,11 +242,15 @@ describe("Zotero.Fulltext", function () {
|
|||
var sql = "SELECT synced FROM fulltextItems WHERE itemID=?";
|
||||
var synced = yield Zotero.DB.valueQueryAsync(sql, item.id);
|
||||
assert.equal(synced, Zotero.Fulltext.SYNC_STATE_UNSYNCED);
|
||||
var indexed = yield Zotero.Fulltext.getIndexedState(item);
|
||||
assert.equal(indexed, Zotero.Fulltext.INDEX_STATE_INDEXED);
|
||||
|
||||
yield Zotero.Fulltext.getUnsyncedContent(item.libraryID);
|
||||
|
||||
synced = yield Zotero.DB.valueQueryAsync(sql, item.id);
|
||||
assert.equal(synced, Zotero.Fulltext.SYNC_STATE_MISSING);
|
||||
indexed = yield Zotero.Fulltext.getIndexedState(item);
|
||||
assert.equal(indexed, Zotero.Fulltext.INDEX_STATE_UNINDEXED);
|
||||
});
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue