Skip to content

MeiliSearch error when filtering on the 512x+ resource pack category #4976

@skyecodes

Description

@skyecodes

Please confirm the following.

Describe the bug

Hello, I noticed that the API returns an HTTP 400 error when filtering on the "512x or higher" resource pack category.

{
  "error": "meilisearch_error",
  "description": "MeiliSearch Error: Meilisearch invalid_request: invalid_search_filter: Expression `(categories = 512x+)))` is missing the following closing delimiter: `)`.\n40:62 (((project_types = resourcepack)) AND ((categories = 512x+))). https://docs.meilisearch.com/errors#invalid_search_filter"
} 

Steps to reproduce

  1. Go to https://modrinth.com/discover/resourcepacks
  2. Click on "512x or higher" filter in the "Resolutions" section
  3. Nothing shows up

Expected behavior

The filter should work correctly

Additional context

I also tried calling the API directly through the /v2/search endpoint and it gives the same result.
I think the + character in the category id might mess things up, as I haven't been able to reproduce with any other filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelates to the Modrinth API for developersbackendInvolves work from the backend team📂 Under review[Triage] Is being reviewed by Modrinth Staff for future roadmap consideration.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions