-
Couldn't load subscription status.
- Fork 102
Add new search parameters highlightPreTag, highlightPostTag and cropMarker #274
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super coolos 🐢
| #[serde(skip_serializing_if = "Option::is_none")] | ||
| pub highlight_pre_tag: Option<&'a str>, | ||
| /// Tag after the a highlighted term. | ||
| /// ex: `hello world</ mytag>` |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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: `...` |
There was a problem hiding this comment.
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: `…`
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]>
As per meilisearch/meilisearch#2214 new search parameters are introduced:
highlightPreTaghighlightPostTagcropMarker