Automattic / Automattic/jetpack
Search: highlight matching text on linked page
- Langage dominant
- PHP
- Étoiles
- 1.8k
- Forks
- 898
- Merge moyen
- 1 j 14 h
- PR mergées (30 j)
- 790
Description
Could we add `#:~:text={searchterms}` to all of our links? In Chrome at least this will highlight and scroll within the page. I can't tell if this is a thing in other browsers or not. I had mentioned this idea on https://github.com/Automattic/jetpack/issues/14911#issuecomment-715615327
https://greg.blog/2013/05/01/three-principles-for-multilingal-indexing-in-elasticsearch/#:~:text=minimal%20stemming
Seems super helpful right? Even better would be to snag the first snippet in the search results but unfortunately our snippets go beyond line breaks so I don't think this will work. e.g. https://jetpack.com/support/search/frequently-asked-questions/#~=text=Pricing:%20How%20can%20I%20reduce%20the%20number%20of%20records%20on%20my%20site?%20Pricing:%20Will%20search%20stop%20working
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par localiser la génération des liens de résultats de recherche utilisée par la page de recherche de support de Jetpack et consultez la discussion associée dans Automattic/jetpack#14911. Vérifiez le comportement des fragments de texte de Chrome avec les URL de résultats et les snippets existants ; le travail est terminé lorsque les liens correspondants mettent en évidence un texte utile et font défiler la page jusqu’à celui-ci sans perturber les autres navigateurs.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- frontend, search
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100