Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: some documented attributes are rejected by the engine #4322

Closed
1 task
sylvainmougel opened this issue Jan 8, 2025 · 2 comments · Fixed by #4324
Closed
1 task

[bug]: some documented attributes are rejected by the engine #4322

sylvainmougel opened this issue Jan 8, 2025 · 2 comments · Fixed by #4324
Labels
bug Something isn't working

Comments

@sylvainmougel
Copy link

Description

keepDiacriticsOnCharacters and customRanking are documented https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex but those parameters are actually rejected by the engine:

keepDiacriticsOnCharacters:

{
  "message": "Unknown parameter: keepDiacriticsOnCharacters",
  "status": 400
}

customRanking:

{
  "message": "Unknown parameter: customRanking",
  "status": 400
}

Language

All

Client

All

Steps to reproduce

Use the following curl command:

curl -s -k -X POST --location "${ALGOLIA_HOST}/1/indexes/${INDEX}/query" \
    -H "x-algolia-application-id: ${APPLICATION_ID}" \
    -H "x-algolia-api-key: ${API_KEY}" \
    -d '{"keepDiacriticsOnCharacters": "øé"}' | jq
{
  "message": "Unknown parameter: keepDiacriticsOnCharacters",
  "status": 400
}

Relevant log output

No response

Self-service

  • I'd be willing to fix this bug myself.
@sylvainmougel sylvainmougel added the bug Something isn't working label Jan 8, 2025
@millotp
Copy link
Collaborator

millotp commented Jan 8, 2025

Hey, in the Algolia doc it is recommended to use the keepDiacriticsOnCharacters property, is this deprecated ?

@millotp
Copy link
Collaborator

millotp commented Jan 8, 2025

My bad this property is only available on setSettings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants