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

Remove "objectID" usage of this repository #66

Open
curquiza opened this issue Mar 20, 2021 · 0 comments
Open

Remove "objectID" usage of this repository #66

curquiza opened this issue Mar 20, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@curquiza
Copy link
Member

curquiza commented Mar 20, 2021

This repository was highly built based on the Algolia's search bundle.

Algolia, to define the unique field of the documents uses the objectID field. Which is not the case of MeiliSearch. MeiliSearch uses the primary key: it infers it, or the user can define it.
More about the primary key of MeiliSerach: https://docs.meilisearch.com/learn/core_concepts/documents.html#primary-field

It means having a code base with objectID does not make sense for a MeiliSearch repository in terms of naming (related to #58) but also in terms of usage!
Indeed it leads us to some issues in the past, especially because the search() method is badly designed for MeiliSearch. See:

⚠️ Because you cannot know the primary key (so the unique field) when getting the search response by MeiliSearch we might think about a way to avoid using this information

@curquiza curquiza changed the title Remove "objectID Remove "objectID" usage of this repository Mar 20, 2021
@codedge codedge mentioned this issue Apr 30, 2021
3 tasks
@brunoocasali brunoocasali added enhancement New feature or request good first issue Good for newcomers labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants