Automattic / Automattic/jetpack
Search: highlight matching text on linked page
- 主要言語
- PHP
- スター
- 1.8k
- フォーク
- 898
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 790
説明
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
コントリビューションガイド
調査の方向性
まず、Jetpack サポート検索ページで使用されている検索結果リンクの生成箇所を見つけ、Automattic/jetpack#14911 の関連する議論を確認します。既存の結果 URL と snippets に対して Chrome のテキストフラグメントがどのように動作するかを確認します。対応するリンクによって有用なテキストがハイライトされ、そこまでスクロールされ、他のブラウザーを壊さなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- frontend, search
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100