Skip to content

Add ability to highlight full word on partial match#16

Merged
micheleriva merged 4 commits intooramasearch:mainfrom
Eveliyse:main
Apr 5, 2025
Merged

Add ability to highlight full word on partial match#16
micheleriva merged 4 commits intooramasearch:mainfrom
Eveliyse:main

Conversation

@Eveliyse
Copy link
Copy Markdown
Contributor

I am currently using @orama/orama in a personal project and was looking to use @orama/plugin-match-highlight plugin but noticed that the README for the plugin said that it would be deprecated in favour of this library.

I found this library to be alot easier to use than the plugin for generating highlights! However I noticed the ability to highlight full words on partial matches was missing and so I have attempted to add this in.

I'm not especially attached to the way I have approached any of this so please do feel free to ask that I change anything for it to fit any guidelines or internal discussions.

Copy link
Copy Markdown
Contributor

@micheleriva micheleriva left a comment

Choose a reason for hiding this comment

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

Hey @Eveliyse thanks for your PR and sorry for my late review! I left one comment. Can you take a look? Thanks again!

@micheleriva
Copy link
Copy Markdown
Contributor

Thanks!!

@micheleriva micheleriva merged commit 5543d0a into oramasearch:main Apr 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants