-
Notifications
You must be signed in to change notification settings - Fork 65
Add highlight prefix suffix tags #739
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
Add highlight prefix suffix tags #739
Conversation
e8969ec
to
c950afe
Compare
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.
Well done! Just ask few questions 🌮
if (hit?.title) { | ||
expect(hit?.title?.value).toEqual('Ariel') | ||
} | ||
|
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 don't understand how you get this result with your query?
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.
It is from inside the nested object!
expect(hit?.objectArray[0]?.name.value).toEqual(
'__ais-highlight__hello__/ais-highlight__ world'
)
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.
LGTM! 🍘
749: Update version for the next release (v0.7.1) r=brunoocasali a=bidoubiwa 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 - Add highlight prefix suffix tags #739 - Add crop marker support #738 Thanks again to `@bidoubiwa` and `@mmachatschek!` 🎉 Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
1306: instant-meilisearch: Fix _matchesPosition not being included in hits r=brunoocasali a=mavcook # Pull Request ## Related issue Fixes #1305 ## What does this PR do? Corrects _matchesPosition field not being included in each hit when meiliSearchParam.showMatchesPosition=true ### Regression This bug was introduced in PR #739, release [0.7.1](https://github.com/meilisearch/meilisearch-js-plugins/releases/tag/v0.7.1), which just seems to have been a typo/forgetting to include _matchesPosition, as you can see it was included in the destructured assignment, but not used. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: mavcook <16587643+mavcook@users.noreply.github.com>
Pull Request
What does this PR do?
Previously instant-meilisearch changed the default
<em>
tags in the specific fields depending on thehighlightPreTag
andhighlightPostTag
value provided by theconfiguration
widget of instantsearch.The replacement of the HTML tags was done by instant-meilisearch. Now, you can provide custom tags to Meilisearch which will use these instead of the previous
em
.