laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

merge highlights for provisions/pages .exact field with main field #1827

Closed longhotsummer closed 3 months ago

longhotsummer commented 3 months ago

for some searches, particularly advanced searches, the match is on the .exact field. If we don't highlight that field, we don't get highlights. To make the client's work easier, we merge highlights from pages.body.exact into pages.body (for example), if a highlight doesn't already exist.