Skip to content

Conversation

@brunoocasali
Copy link
Member

@brunoocasali brunoocasali commented Apr 26, 2022

As per meilisearch/meilisearch#2214 new search parameters are introduced:

  • highlightPreTag
  • highlightPostTag
  • cropMarker

This PR adds tests to ensure the new parameters are working.

@brunoocasali brunoocasali added the enhancement New feature or request label Apr 26, 2022
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

  • Why not do the test in the ruby-friendly way, I mean with snake case instead of camel case? 😇
  • Also, it's not clear in the PR description the parameter are supported by default by the package and only tests are added in this PR. I suppose you put the enhancement label to let the user understand this new release is compatible with cropMarker... but we have to be clear regarding the PR, otherwise it could be confused if the user goes to the PR.

@brunoocasali brunoocasali force-pushed the add-nested-fields-support branch 2 times, most recently from db5df23 to 6904b51 Compare April 26, 2022 17:33
Base automatically changed from add-nested-fields-support to bump-meilisearch-v0.27.0 April 26, 2022 17:43
@brunoocasali brunoocasali force-pushed the add-crop-and-highlight branch from 21ea0c0 to 70d972f Compare April 26, 2022 17:50
@brunoocasali brunoocasali force-pushed the add-crop-and-highlight branch from 70d972f to 635d96c Compare April 26, 2022 17:51
@brunoocasali
Copy link
Member Author

Why not do the test in the ruby-friendly way, I mean with snake case instead of camel case? 😇

Yeah, I have run out of hair because of it, but for now, is ok to keep it because is consistent with the other tests present in this file.
But I don't have a clear path about deprecating this camelCase way yet. What I can do in this case is to add the samples the correct way.

In any case, I'll open an issue about it!

@brunoocasali
Copy link
Member Author

Issue about camel casing is open #320

@brunoocasali
Copy link
Member Author

@curquiza and @bidoubiwa I'll merge it, but feel free to make comments!

@brunoocasali brunoocasali merged commit 045acb3 into bump-meilisearch-v0.27.0 Apr 26, 2022
@brunoocasali brunoocasali deleted the add-crop-and-highlight branch April 26, 2022 18:25
meili-bors bot added a commit that referenced this pull request May 9, 2022
323: Update version for the next release (v0.18.3) r=curquiza a=brunoocasali

This version makes this package compatible with Meilisearch v0.27.0 🎉
Check out the changelog of [Meilisearch v0.27.0](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0) for more information on the changes.

## 🚀 Enhancements

* Ensure nested field support (#318) `@brunoocasali`
* Add `highlightPreTag`, `highlightPostTag`, `cropMarker`, parameters in the search request (#319) `@brunoocasali`
* Create a helper module to reduce test duplication (#316) `@brunoocasali`

## 🐛 Bug Fixes

* Improve error handling, rescue EPIPE and Net::* errors (#307) `@brunoocasali`

Thanks again to `@brunoocasali!` 🎉


Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
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.

4 participants