hydrusnetwork / hydrusnetwork/hydrus
New search predicate: substring of hash
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.2k
- Forks
- 207
- PR merge metrics
- No merged PRs in 30d
Description
The system:hash predicate only allows searching the full hash.
When working with files outside of hydrus, the best way to identify the file in hydrus is usually the hash (I export files naming them with the sha256 hash).
Some programs don't facilitate copying/pasting the filename and trying to type 64 characters can be painful.
Please consider adding a predicate to find files where a substring of the hash appears, similar to the wildcard searches available on regular tags.
e.g. a file named 1bcd4536f1db4ac24a69d6456e05a1093c32368973bf73e16245498262b9bf78af6.jpg, allow searching by partial hash such as '1bcd*' or '*78af6'.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the system:hash predicate and regular-tag wildcard searches, but no files or tests. Start by locating those two search paths and compare how exact hashes and wildcard terms are handled. Done means leading and trailing partial-hash examples return the intended files without requiring a full 64-character hash, with coverage for both examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100