[PR #1457] Implement searching individual fields #2942

Closed
opened 2026-03-01 18:01:12 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/1457

State: closed
Merged: Yes


Summary

This adds a rudimentary implementation of #1453.
So far, this only changes the search box on the public view, as the custom form and corresponding logic there were relatively simple to track down and change.
As far as I can tell, the one on the admin page uses Django's built-in functionality instead, and I didn't see any immediate way to change that logic.

The current list of supported fields is mostly just based on the placeholder in the search input, but adding more metadata fields should be trivial.
Another interesting change could be to have the Metadata option run ripgrep, but restricted to index.json via glob (or the equivalent for other backends), but that would require a change in the search backends' search() function signature.

Related issues

#1453

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk
**Original Pull Request:** https://github.com/ArchiveBox/ArchiveBox/pull/1457 **State:** closed **Merged:** Yes --- <!-- IMPORTANT: Do not submit PRs with only formatting / PEP8 / line length changes. --> # Summary This adds a rudimentary implementation of #1453. So far, this only changes the search box on the public view, as the custom form and corresponding logic there were relatively simple to track down and change. As far as I can tell, the one on the admin page uses Django's built-in functionality instead, and I didn't see any immediate way to change that logic. The current list of supported fields is mostly just based on the placeholder in the search input, but adding more metadata fields should be trivial. Another interesting change could be to have the `Metadata` option run ripgrep, but restricted to `index.json` via glob (or the equivalent for other backends), but that would require a change in the search backends' `search()` function signature. # Related issues #1453 # Changes these areas - [ ] Bugfixes - [x] Feature behavior - [ ] Command line interface - [ ] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk
kerem 2026-03-01 18:01:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2942
No description provided.