feat(api): filename: search token — exact case-insensitive filename filter #1437
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/search-filename-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
filename:<value>to the search token grammar (user request: search by exact file name likefilename:20161001_150838.jpg).Behavior
original_assets.original_filename(lower(oa.original_filename) = lower(:param), parameter-bound — no ILIKE pattern chars, no substring/fuzzy).filename:...JPGmatches stored.jpg.year:precedent.SearchRestriction→ narrows all legs (browse, thing, lexical, semantic); filter-onlyfilename:Xbrowses the filtered set.SearchFilterSummary.unmatchedFilenameTokens, mirroring the unmatchedalbum:precedent. Android tolerant (ignoreUnknownKeys).Tests
+7 parser, +7 service tests (exact match, extension case, no substring, owner scoping incl. foreign same-name file, unmatched summary, AND with
person:, filter-only browse + source assertions for the SQL fragment and 4-leg reach).dev.memories.api.search.*+ contracts: 121 tests, 0 failures.Docs
OpenAPI
/api/search(q description,SearchTokenFilter.kindenum +filename, new summary property) anddocs/wiki/user/search.mdtoken grammar.Stacked PR for the web UI follows (builds on
unmatchedFilenameTokens).