Enhancement Inquiry: Modifying showMatchesPosition Behavior in Meilisearch #706
Replies: 1 comment
-
Hello @dpcks666,
About the Unit of Calculation for showMatchesPosition, it's the same, it would be breaking to replace the unit, but we could easily have additional character-based positions in the return value.
I'm not the best to answer this question 😞, but I suggest joining our discord to ask for help, I'm sure you'll find an answer from a mobile developer in our community. I hope my answer is clear enough, but don't hesitate to ask more questions or precisions if you need them! Thanks again for your detailed message, |
Beta Was this translation helpful? Give feedback.
-
Hi
I trust this message finds you well. I'm interested in discussing potential enhancements to the showMatchesPosition functionality in Meilisearch.
Calculation of Starting Point Using attributesToCrop:
Currently, showMatchesPosition is calculated from the original starting point. I'm exploring the possibility of enhancing this feature to allow the calculation of the starting point based on the content cropped by attributesToCrop. Is it feasible to implement such functionality to determine the starting point from the cropped content?
Unit of Calculation for showMatchesPosition:
The existing showMatchesPosition calculates positions in bytes. Would it be possible to extend this functionality to calculate positions on a per-character basis instead of bytes?
Additionally, I'd like to note that implementing HTML-based highlighting for mobile devices can be a challenging task. Are there any specific considerations or recommendations you have for achieving this on mobile platforms?
I am eager to contribute to the implementation of these features and would appreciate your insights on the technical feasibility and any recommended steps to proceed. Your guidance on this matter would be highly valuable.
Thank you for your time and consideration.
Beta Was this translation helpful? Give feedback.
All reactions