MyShaarli/application/bookmark
ArthurHoaro 4e3875c0ce Feature: highlight fulltext search results
How it works:

  1. when a fulltext search is made, Shaarli looks for the first
occurence position of every term matching the search. No change here,
but we store these positions in an array, in Bookmark's additionalContent.
  2. when formatting bookmarks (through BookmarkFormatter
implementation):
    1. first we insert specific tokens at every search result positions
    2. we format the content (escape HTML, apply markdown, etc.)
    3. as a last step, we replace our token with displayable span
elements

Cons: this tightens coupling between search filters and formatters
Pros: it was absolutely necessary not to perform the
search twice. this solution has close to no impact on performances.

Fixes #205
2020-10-16 20:31:12 +02:00
..
exception Remove anonymous permission and initialize bookmarks on login 2020-08-01 11:10:57 +02:00
Bookmark.php Feature: highlight fulltext search results 2020-10-16 20:31:12 +02:00
BookmarkArray.php Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
BookmarkFileService.php Strict types: fix an issue in daily where the date could be an int 2020-10-16 12:04:46 +02:00
BookmarkFilter.php Feature: highlight fulltext search results 2020-10-16 20:31:12 +02:00
BookmarkInitializer.php Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
BookmarkIO.php Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
BookmarkServiceInterface.php Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
LinkUtils.php Merge pull request #1540 from ArthurHoaro/fix/metadata-regexes 2020-10-13 12:26:55 +02:00