1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-23 14:44:21 +02:00

Updated Setting up Search (markdown)

Nick Sweeting
2024-05-10 15:23:21 -07:00
parent dab9c33970
commit 0620cc9513

@@ -9,8 +9,6 @@ You can search your ArchiveBox data in a number of ways:
![image](https://github.com/ArchiveBox/ArchiveBox/assets/511499/637675ee-bf4a-49f9-b936-c2da1bd64410)
ArchiveBox search works by finding matches in `Snapshot` metadata fields (`url`, `title`, `timestamp`, `tags`), and the actual archived content (using the selected search backend below). You can find the search implementation here: [`archivebox/core/views.py: PublicIndex.get_queryset()`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/core/views.py#:~:text=title__icontains).
<br/>
> *Note: ArchiveBox currently only returns the bare list of snapshots that match when performing a search.*
@@ -25,6 +23,8 @@ ArchiveBox search works by finding matches in `Snapshot` metadata fields (`url`,
## ArchiveBox Search Backends
ArchiveBox search works by doing simple substring matches in `Snapshot` metadata fields (`url`, `title`, `timestamp`, `tags`), and by searching the full archived content within each Snapshot (using the selected search backend below). You can find the search implementation source code here: [`archivebox/core/views.py: PublicIndex.get_queryset()`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/core/views.py#:~:text=title__icontains).
```bash
# this setting controls which search backend ArchiveBox uses
archivebox config --set SEARCH_BACKEND_ENGINE=[ripgrep]|sonic|sqlite