Automattic / Automattic/jetpack
Search: highlight matching text on linked page
- Lenguaje dominante
- PHP
- Estrellas
- 1.8k
- Forks
- 898
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 774
Descripción
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
Guía de contribución
Línea de trabajo
Empieza por localizar la generación de enlaces de resultados de búsqueda utilizada por la página de búsqueda de soporte de Jetpack y revisa la discusión relacionada en Automattic/jetpack#14911. Comprueba cómo funcionan los fragmentos de texto de Chrome con las URL de resultados y los snippets existentes; se considera terminado cuando los enlaces coincidentes resaltan texto útil y se desplazan hasta él sin romper otros navegadores.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- php
- Área
- frontend, search
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100