Skip to content

feat: add smart result filters - #9

Merged
melqtx merged 1 commit into
melqtx:mainfrom
aadithyanr:feat/smart-result-filters
Jul 27, 2026
Merged

feat: add smart result filters#9
melqtx merged 1 commit into
melqtx:mainfrom
aadithyanr:feat/smart-result-filters

Conversation

@aadithyanr

Copy link
Copy Markdown
Contributor

What changed

Turns the existing / result filter into a composable smart-filter bar while
preserving fuzzy title matching.

Examples:

res:1080p seeders:>20 size:<8gb
linux codec:x265 -source:cam
provider:nyaa category:anime is:trusted
is:hdr -is:dv

Supported facets:

  • resolution, seeders, and human-readable size comparisons
  • source, codec, provider, and category
  • trusted, HDR, Dolby Vision, and season/collection pack attributes
  • negation for every structured facet
  • arbitrary fuzzy title text alongside any facets

The results header now shows the live filtered count, the filter field offers
syntax examples, and invalid values produce an inline explanation.

Why

Searches often return many versions of the same release. Sorting helps find the
best overall result, but it does not answer constraints such as “1080p x265,
under 8 GiB, at least 20 seeders, and not a CAM.” Smart filters make that
interactive without changing the provider query or triggering another network
search.

The same filtered result set feeds both the flat and grouped graph views.

Compatibility

  • ordinary /some title fuzzy filtering behaves as before
  • no config or state format changes
  • no new dependencies

Local validation

  • go test -count=1 ./...
  • go vet ./...
  • go build -o /tmp/tork-smart-filters ./cmd/tork
  • ran the built binary with --version

@melqtx
melqtx requested a review from Copilot July 26, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@melqtx

melqtx commented Jul 26, 2026

Copy link
Copy Markdown
Owner

lmao, ill review it asap, thanks for the pr

@melqtx

melqtx commented Jul 27, 2026

Copy link
Copy Markdown
Owner

lgtm, thanks for the pr. im merging the pr, will create a release shortly.

@melqtx
melqtx merged commit 62d2809 into melqtx:main Jul 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants