fix: use lexical search_issues for scoped and syntax queries - #3265
Open
Amidwestnoob wants to merge 2 commits into
Open
Amidwestnoob wants to merge 2 commits into
Amidwestnoob wants to merge 2 commits into
Conversation
Amidwestnoob
added a commit
to Amidwestnoob/github-mcp-server
that referenced
this pull request
Sep 12, 2026
leuasseurfarrelds247-arch
approved these changes
Sep 12, 2026
On github.com, search_issues defaulted to semantic search, so keyword and GitHub search-syntax queries silently returned near-empty or unrelated hits. Choose lexical when owner/repo scope is set, when the raw query looks like issues search syntax, or when search_type is lexical. Keep semantic for open-ended natural-language queries, with an explicit search_type override. Closes github#3188
Amidwestnoob
force-pushed
the
fix/3188-lexical-search-issues-when-scoped
branch
from
September 17, 2026 13:10
b07fb53 to
ea20c86
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_issueswas always semantic, so keyword / search-syntax queries could return near-empty or unrelated results while REST lexical search was correct.owner+repoare set, when the raw query looks like GitHub issues search syntax, or whensearch_type=lexical.search_type=semanticto override.search_issuestoolsnap/docs.Closes #3188
Test plan
script/lintUPDATE_TOOLSNAPS=true go test ./pkg/github/ -count=1script/generate-docs