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: explainModules #859

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

Unknown parameter: explainModules #859

iludi95 opened this issue Apr 9, 2024 · 0 comments

Comments

@iludi95
Copy link

iludi95 commented Apr 9, 2024

Hello,

We are upgrading from InstantSearchClient 5.0 to AlgoliaSearchClient version 8.20.1, on iOS, and due of lackness of Explain Modules feature, in previous SDK, and documentation, we managed to make it work, setting a custom parameter up, on Query object.

Now, seems it is available on new Codable data model and, could be set as .set(\.explainModules, to: [.matchAlternatives]) on Query object but, when performing a request, backend responses with an status code of 400 with the next reason: "Unknown parameter: explainModules". We could made work it again setting it as custom parameter like so: .set("explain": .string(ExplainModule.matchAlternatives.rawValue)]).

Is an error with the CodingKey which should not be literally its name?

Thanks in advance

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