Skip to content

Conversation

@ahmednfwela
Copy link
Collaborator

@ahmednfwela ahmednfwela commented Mar 11, 2023

Fixes #102
Depends on #261

  • Tests Added

@ahmednfwela ahmednfwela mentioned this pull request Mar 11, 2023
1 task
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments, but in fact I think solving the conflicts will help a lot!

/// * the passed [documents] must be a valid JSON string representing an array of objects.
/// * If index does not exist, it tries to create a new index and adds documents.
Future<Task> addDocumentsJson(
String documents, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best way to represent the JSON docs is to receive it as string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current addDocuments already receives a parsed json, all these new methods mainly target file contents, so all of them must be raw strings.
or is that not the case ?

@ahmednfwela
Copy link
Collaborator Author

I have reworked document tests to be more structured and removed some repetitive code, I also organized the comments in macro templates.

@brunoocasali brunoocasali added the enhancement New feature or request label Mar 14, 2023
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @ahmednfwela 🎉

bors merge

@bors
Copy link
Contributor

bors bot commented Mar 14, 2023

@bors bors bot merged commit 821cc6e into meilisearch:main Mar 14, 2023
@ahmednfwela ahmednfwela deleted the feat/ndjson-csv branch March 14, 2023 23:15
bors bot added a commit that referenced this pull request Mar 17, 2023
263: [Feature] Add Typo tolerance r=brunoocasali a=ahmednfwela

Fixes #152
Depends on #262

- [x] Tests Added

Co-authored-by: Ahmed Fwela <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NDJSON/CSV methods to add and update documents

2 participants