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

Unknown parameter: customRanking #8

Open
ChoLianJiet opened this issue Apr 9, 2024 · 0 comments
Open

Unknown parameter: customRanking #8

ChoLianJiet opened this issue Apr 9, 2024 · 0 comments

Comments

@ChoLianJiet
Copy link

I was trying to query using customRanking paramater

final SearchForHits queryHits = SearchForHits(
    indexName: indexName,
    query: searchText,
    hitsPerPage: hitsPerPage,
    page: page,
    filters: filters,
    attributesToRetrieve: attributesToRetrieve,
    customRanking: ranking);

However i get a thrown error
AlgoliaApiException{statusCode: 400, error: {"message":"Unknown parameter: customRanking","status":400}}

The ranking is an empty array [].

When i remove the customRanking parameter, it works totally fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant