lunr.js icon indicating copy to clipboard operation
lunr.js copied to clipboard

Position metadata missing for matches from a collection

Open dxp227 opened this issue 3 years ago • 0 comments

Hey there!

It looks like position metadata is missing for matches that occur within a collection-type field.

Example Fiddle

Not sure how this could be elegantly represented - perhaps by including the element index in the position data? eg. { "position": [ index, matchStart, matchLength ] }

dxp227 avatar Apr 29 '21 20:04 dxp227