bangumi / bangumi/api

POST /v0/search/subjects 里用 - 排除标签没有效果

Open
#248 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.2k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

如题
`
POST /v0/search/subjects
{
"keyword": "",
"filter": {
"meta_tags": [
"-科幻"
]
}
}
`
会返回
`
{
"data": [],
"total": 0,
"limit": 10,
"offset": 0
}
`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the POST /v0/search/subjects request shown in the issue, then trace the endpoint's handling of the meta_tags filter. Compare the -科幻 case with an ordinary tag filter. Done means the exclusion filter omits 科幻 subjects without incorrectly returning an empty result set.

Written by the indexing model from the issue text.

Assessment

Domain
api, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.