GitHub Issuesの検索機能改善が一般提供開始
GitHubがIssuesの検索機能を改善し、自然言語による意味検索とハイブリッド検索を一般公開し、APIでも利用可能になった。
キーポイント
自然言語検索の一般公開
GitHub Issuesで自然言語による意味検索が一般公開され、ユーザーはキーワードだけでなく概念的に関連するIssueも検索できるようになった。
検索精度の向上
従来の検索に比べて、目的の結果が上位3件に表示される確率が66%から75%に向上し、ユーザーの検索成功率が高まった。
APIでの利用可能
REST APIとGraphQL APIを通じてセマンティック検索とハイブリッド検索が利用可能になり、外部ツールやワークフローへの統合が容易になった。
ハイブリッド検索の導入
自然言語検索時にはセマンティック検索とキーワードマッチングを組み合わせたハイブリッド検索が行われ、関連性の高い結果と完全一致の結果を同時に得られる。
影響分析・編集コメントを表示
影響分析
この改善により、開発者はより直感的にIssueを検索できるようになり、プロジェクト管理の効率が向上する。特に大規模プロジェクトや複数リポジトリを横断するIssue管理において、検索精度の向上が開発ワークフローの改善に寄与する。API連携により、カスタムツールやCI/CDパイプラインへの統合も促進される。
編集コメント
開発者体験の向上に焦点を当てた実用的な機能改善。自然言語処理技術の実装により、従来のキーワード検索の限界を超えた検索体験を提供している点が注目される。
適切なissueを見つけることが、これまで以上に簡単になりました。1月にパブリックプレビューで初めて導入され、2月にIssuesダッシュボードに拡張された、GitHub Issuesの検索機能改善版が、ついに一般提供されます。issueのタイトルと本文をインデックス化することで、この検索機能はキーワードだけでなく、意味によってもissueを見つけられるようになりました。
パブリックプレビュー開始以来、その成果は明らかです。ユーザーは必要なものをより高い確率で発見できるようになっただけでなく、検索が成功した場合、求める結果が上位3件以内に表示される割合が75%に達しています。これは従来の検索の66%から向上した数値です。一般提供開始に伴い、この検索機能にはAPIからもアクセスできるようになりました。
このリリースに含まれる内容
issue全体での自然言語検索: 探している内容を平易な言葉で説明するだけで、GitHubは文言が完全に一致しなくても、概念的に関連する結果を返します。
Issuesインデックスとダッシュボード: セマンティック検索は、単一のリポジトリ内だけでなく、Issuesダッシュボード上のすべてのリポジトリを横断して機能します。
ハイブリッド検索: 自然言語で検索すると、GitHubは同一クエリ内でセマンティックマッチングとキーワードマッチングを組み合わせるため、概念的に関連する結果と完全一致の結果の両方を同時に取得できます。フィルターや引用符のみを使用した検索は、精度を重視して従来のレキシカル検索が使用されます。
ベストマッチソート: 結果はデフォルトで関連性順に並べ替えられ、最も有用なissueが最初に表示されます。
APIアクセス: セマンティック検索がRESTおよびGraphQL APIで利用可能になったため、独自のツールやワークフローに統合できます。
API詳細
既存の /search/issues エンドポイントを search_type=semantic または search_type=hybrid を指定して使用します。レスポンスには、実行された検索の種類と、レキシカル検索へのフォールバックが発生した場合はその理由が示されます。検索タイプを指定しない場合、デフォルトではレキシカル検索が実行されます。
org:、user:、repo: 修飾子を使用してクエリの範囲を限定できます。セマンティック検索およびハイブリッド検索のクエリは、1分あたり10リクエストにレート制限されます。標準のレキシカル検索は既存のレート制限が適用されます。
GraphQL経由で検索にアクセスする場合は、検索クエリの searchType 引数に SEMANTIC または HYBRID を指定できます。
詳細については、RESTおよびGraphQLのドキュメントをご覧ください。
GitHubコミュニティでフィードバックをお寄せください。
GitHub Issuesへのその他の改善
issueテンプレートエディターが、UIからテンプレートを編集する際にTypeフィールドを保持するようになりました。
issue検索でフィルターを使用する際、担当者名の前に@を付けてタグ付けすることが、期待通りに動作するようになりました。
カンマ区切りの repo:、org:、user: 修飾子が、Issuesダッシュボードでエラーを発生させなくなりました。
折りたたまれたブロック内のMermaidダイアグラムが正しくレンダリングされるようになりました。
この投稿「Improved search for GitHub Issues is now generally available」は、The GitHub Blogで最初に公開されました。
原文を表示
Finding the right issue just got easier. First introduced in public preview in January and expanded to the Issues dashboard in February, improved search for GitHub Issues is now generally available. By indexing issue titles and bodies, this search lets you find issues by meaning, not just keywords.
Since public preview, the results have spoken for themselves. Not only have users had greater success in finding what they need, but when they are able to search successfully, that desired result is in the top three issues shown 75% of the time, compared to 66% with traditional search. With the release to general availability, you can now also access this search through the API.
What’s included in this release
Natural language search across issues: Describe what you’re looking for in plain language and GitHub returns conceptually related results, even when the wording doesn’t match.
Issues index and dashboard: Semantic search works both within a single repository and across your repositories on the issues dashboard.
Hybrid search: When you search with natural language, GitHub combines semantic and keyword matching in the same query, so you get both conceptually related results and exact matches together. Searches using only filters or quotation marks use traditional lexical search for precision.
Best match sorting: Results are ordered by relevance by default, surfacing the most useful issues first.
API access: Semantic search is now available through the REST and GraphQL APIs, so you can integrate it into your own tools and workflows.
API details
Use the existing /search/issues endpoint with search_type=semantic or search_type=hybrid. The response tells you which search was performed and, if a fallback to lexical occurred, why. If you do not specify a search type, a lexical search will be performed by default.
You can scope your queries with org:, user:, and repo: qualifiers. Semantic and hybrid queries are rate limited to 10 requests per minute. Standard lexical searches retain existing rate limits.
If you are accessing search via GraphQL, you can use the searchType argument on the search query with SEMANTIC or HYBRID.
See the REST and GraphQL documentation for full details.
Share your feedback in the GitHub Community.
Other improvements to GitHub Issues
The issue template editor now preserves the Type field when editing templates from the UI.
When using filters in issues search, tagging assignees with @ in front of their handle now works as expected.
Comma-separated repo:, org:, and user: qualifiers no longer return errors on the Issues dashboard.
Mermaid diagrams inside collapsed blocks now render correctly.
The post Improved search for GitHub Issues is now generally available appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み