Skip to content

Update Readme with updated examples #716

@Calemy

Description

@Calemy

Description
There have been some changes made to the meilisearch-go api. One of them including what type is being used to update the filterable attributes. Instead of strings, we now use an interface array, which is not reflected on the README and can be therefore confusing to beginners.

Basic example

task, err := index.UpdateFilterableAttributes(&[]string{"id", "genres"})

would become

task, err := index.UpdateFilterableAttributes(&[]any{"id", "genres"})
//I am aware it's an interface, but any is just a reference to interface anyways.

While i'm not sure how many routes have been affected, updating the docs is crucial to not frustrate unaware developers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions