Collections (documents on your computer)
A collection is a set of folders that are searched. One collection is one area of documents: for example, “Work”, “Study”, “Home”. You can search one collection or all of them at once.
What a collection is
- A collection is a name, a list of folders and its own search index.
- Files are not copied anywhere: the collection remembers the paths to folders and extracts text from the files, putting it into its index.
- Each collection has its own index, so “work” and “home” are searched separately and do not interfere with each other.
Create a collection
- Open Settings → “Collections”.
- At the bottom, enter a name, optionally a description, and folders separated by commas (or click the folder picker button).
- Click “Add a collection”.
- Start a scan — only after it do the files get into the search.
The collection name turns into a short id (in Latin letters). It is visible in brackets next to the name and is used in commands, for example /bucket <id>.
Add a folder to a collection
- In the collection’s row, type the path to a folder or click “Choose…”, then “Add”.
- One folder can be kept in several collections.
- To remove a folder, click the cross on the badge with its name: the files stay on the disk, the folder simply stops taking part in this collection.
Scan: “changed” and “all”
- Scan (changed) — index what is new and changed and remove from the index what has been deleted. It is fast and enough for everyday work.
- Scan (all) — reindex everything from scratch: the collection’s index is cleared first, then filled again. Needed rarely — for example, after changing the search model or when the search behaves strangely.
After a scan, the collection shows how many were added, how many are unchanged, how many files were not recognised and how many errors there were.
Choose and delete a collection
- Choose — make the collection current. In the search line you can then search in it or in all collections.
- Delete — deletes the collection and its index. The files themselves are not deleted from the disk.
Tips
- Separate documents by topic — that makes the answers more precise.
- For the big picture, search “in all collections”.
- If a file has stopped being found, check its state with the
/docscommand — it will show why the file is not in the search.
Example: create a collection and index a folder
- Create a folder on the disk, for example
C:\Документы\Работа, and put files in it — PDF, Word, texts. - In AnyText, open Settings → “Collections”.
- At the bottom, enter the collection name:
Работа. The description can be left empty. - Click the button with the folder (“Choose…”) and point to
C:\Документы\Работа— the path appears in the field. - Click “Add a collection” — it appears in the list above.
- Click “Scan (changed)” next to it and wait for it to finish. Under the collection’s row a report appears: how many were added, how many unchanged, how many skipped and how many errors.
- In the search line, choose this collection and type a word that is definitely in one of the documents.
What you get: the files from the folder become findable by search. New files put into the folder later are picked up by the next “Scan (changed)” — no need to repeat the setup.