Please confirm the following.
Describe the bug
The color facet documented at /search does not appear to filter correctly. Querying with a project's own color value (taken directly from that project's /project/{id} response) returns zero hits, even though the project exists and is indexed under other facets (query alone finds it). Testing a numeric range around the known value also returns zero hits, which suggests the field may not be marked as a filterable attribute in the search index, rather than a mismatch.
Steps to reproduce
- GET
/project/sodium and note the color field (8703084 at time of writing). Also note that the project is indexed and searchable.
- GET
/search?facets=[["color:8703084"]], returns hits: [], total_hits: 0
- GET
/search?facets=[["color>=8700000"],["color<=8710000"]], returns hits: [], total_hits: 0
Expected behavior
Searching with the "color" facet set to a project's actual indexed color value should return that project among the hits, consistent with how categories, versions, and other documented facets behave.
Additional context
Tested on multiple project colors to no avail.
Docs: https://docs.modrinth.com/api/operations/searchprojects/
Please confirm the following.
Describe the bug
The color facet documented at /search does not appear to filter correctly. Querying with a project's own color value (taken directly from that project's /project/{id} response) returns zero hits, even though the project exists and is indexed under other facets (query alone finds it). Testing a numeric range around the known value also returns zero hits, which suggests the field may not be marked as a filterable attribute in the search index, rather than a mismatch.
Steps to reproduce
/project/sodiumand note the color field (8703084 at time of writing). Also note that the project is indexed and searchable./search?facets=[["color:8703084"]], returns hits: [], total_hits: 0/search?facets=[["color>=8700000"],["color<=8710000"]], returns hits: [], total_hits: 0Expected behavior
Searching with the "color" facet set to a project's actual indexed color value should return that project among the hits, consistent with how categories, versions, and other documented facets behave.
Additional context
Tested on multiple project colors to no avail.
Docs: https://docs.modrinth.com/api/operations/searchprojects/