Closed matijagaspar closed 3 months ago
You should submit your change as a pull request. I'm interested in this functionality as well.
Also noticed that the result doesn't filter array strings that don't have a hit. This is kind of important when building search objects that need to query relations.
Hi folks, I have an update on this. We're gonna deprecate this plugin in favor of https://www.npmjs.com/package/@orama/highlight. This allows more lightweight and faster indexes, I highly recommend using it.
Describe the bug
The plugin ignores array fields in the schema, so matches found inside string arrays do not list highlight positions
To Reproduce
Results hits.positions being
{}
:Expected behavior
positions
object in the hit to not be empty.Environment Info
Affected areas
Search
Additional context
No response