Skip to content

Conversation

@bidoubiwa
Copy link
Contributor

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

  • highlightPreTag
  • highlightPostTag
  • cropMarker

Copy link
Contributor

@irevoire irevoire left a comment

Choose a reason for hiding this comment

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

super coolos 🐢

@bidoubiwa bidoubiwa merged commit 319cf52 into bump-meilisearch-v0.27.0 Apr 28, 2022
@bidoubiwa bidoubiwa deleted the add_crop_and_highlight branch April 28, 2022 12:19
#[serde(skip_serializing_if = "Option::is_none")]
pub highlight_pre_tag: Option<&'a str>,
/// Tag after the a highlighted term.
/// ex: `hello world</ mytag>`
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion:

    /// Tag after the highlighted term.
    /// ex: `hello world</mytag>`

setup_test_index(&client, &index).await?;

let mut query = Query::new(&index);
query.with_query("sed do eiusmod");
Copy link
Member

Choose a reason for hiding this comment

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

I like this way of declaring builders :D

let mut query = Query::new(&index)
  .with_query("sed do eiusmod")
  .with_attributes_to_crop(Selectors::All)

/// Marker at the start and the end of a cropped value.
/// ex: `...middle of a crop...`
///
/// Default: `...`
Copy link
Member

Choose a reason for hiding this comment

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

There is a subtle difference in the to ...

/// Default: `…`

bors bot added a commit that referenced this pull request May 9, 2022
287: Update version for the next release (v0.17.0) 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.

## ⚠️ Breaking changes

* Remove jsonindex (#278) `@abhizer`

## 🚀 Enhancements

* Add cli-app example to meilisearch-rust (#279) `@salugi`
* Ensure nested field support (#273) `@bidoubiwa`
* Add new search parameters `highlightPreTag`, `highlightPostTag` and `cropMarker` (#274) `@bidoubiwa`
* Add User-Agent header to have analytics in every HTTP request (#254) `@brunoocasali`

Analytics is enabled by default in the server, but you can disable them by following [this guide](https://docs.meilisearch.com/learn/what_is_meilisearch/telemetry.html#how-to-disable-data-collection)
Also, of course, every analytics data we collect are **ANONYMOUS** [read the guide for more information](https://docs.meilisearch.com/learn/what_is_meilisearch/telemetry.html).



Thanks again to `@abhizer,` `@bidoubiwa,`  `@irevoire,` `@salugi` and a1! 🎉


Co-authored-by: Bruno Casali <[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.

3 participants