Fixup for deleting items

First, when checking for existence of a file, deleted items are not
conisdered.

The working with fulltext search has been changed: deleted items are
removed from fulltext index and are re-added when they are restored.
The fulltext index currently doesn't hold the item state and it would
mean much more work to introduce it into the index (or, worse, to
reprocess the results from the index). Thus, deleted items can only be
searched using database queries. It is probably a very rare use case
when fulltext search should be applied to deleted items. They have
been deleted for a reason and the most likely case is that they are
simply removed.

Refs: #347
This commit is contained in:
eikek
2021-08-15 15:40:33 +02:00
parent 50387cd378
commit 14e4a8f792
13 changed files with 137 additions and 58 deletions

View File

@ -72,4 +72,5 @@ object TextData {
notes: Option[String]
): TextData =
Item(item, collective, folder, name, notes)
}