-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searching for Code, Web and API differ #2956
Comments
@FHantke thanks for the feedback! Unfortunately the new web search uses Blackbird (more details in this post), and because of changes to the search syntax and search results we have not yet upgraded the REST API to use this engine. I can't be more specific about when this will occur, but keep an eye on the issue tracker in https://github.com/github/roadmap for a preview of this new API... |
Thank you for the quick answer 👍 |
I'm here 8 month later, having the same issue... |
So you say those search syntax is different. Do you have a documentation for API search syntax? I used https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#path-qualifier which is linked from here: https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#constructing-a-search-query and it's not working. I can live with syntax being different, but I need to know, what's possible. Currently I am looking for query for finding files by names like: |
Searching for Code, Web and API differ
Hi all,
I am not sure if this is the correct repository to open this issue, but I did not find any other better fitting one.
I started playing around with the Git rest API today to search for code snippets. However, after a few searches, I realized that the API finds less files than the normal web search. Is there an option that prevents the search from showing all results?
My code is simply a request to the
/search/code
endpoint.The API returns 817152 results, while using the GitHub web search return 4.6M.
I would expect to find the same number of files with both methods.
Thank you
Florian
The text was updated successfully, but these errors were encountered: