MyShaarli/application
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
..
api Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
bookmark Feature: highlight fulltext search results 2020-10-16 20:31:12 +02:00
config Compatibility with PHP 8 2020-09-29 18:57:22 +02:00
container Add mutex on datastore I/O operations 2020-10-13 12:38:19 +02:00
exceptions namespacing: \Shaarli\Exceptions\IOException 2019-01-12 22:47:48 +01:00
feed Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
formatter Feature: highlight fulltext search results 2020-10-16 20:31:12 +02:00
front Inject ROOT_PATH in plugin instead of regenerating it everywhere 2020-10-16 13:06:06 +02:00
http Add manual configuration for root URL 2020-09-12 21:39:01 +02:00
legacy Merge pull request #1541 from ArthurHoaro/fix/legacy-login-encoding 2020-09-03 18:54:45 +02:00
netscape Better support for notes permalink 2020-07-28 20:46:11 +02:00
plugin Inject ROOT_PATH in plugin instead of regenerating it everywhere 2020-10-16 13:06:06 +02:00
render Support using Shaarli without URL rewriting 2020-10-16 12:47:11 +02:00
security Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
updater Fix basePath in unit tests reference DB 2020-07-28 22:34:45 +02:00
.htaccess .htaccess files: support Apache 2.4+ syntax 2016-11-08 11:38:14 +01:00
ApplicationUtils.php Run Unit Tests against PHP 7.4 2020-01-17 18:34:37 +01:00
FileUtils.php namespacing: \Shaarli\FileUtils 2019-01-12 22:47:48 +01:00
History.php Apply the new system (Bookmark + Service) to the whole code base 2020-01-18 09:55:59 +01:00
Languages.php Japanese translation: add language to admin configuration page 2020-08-27 15:00:48 +02:00
Thumbnailer.php Process thumbnail synchronize page through Slim controllers 2020-07-23 21:19:21 +02:00
TimeZone.php Change timezone data structure send to the templates 2017-04-03 19:24:55 +02:00
Utils.php Security: fix multiple XSS vulnerabilities + fix search tags with special chars 2020-10-06 17:30:18 +02:00