René's URL Explorer Experiment


Title: gh-138277: Elevate Built-in Types and Functions in Documentation Search by adqm · Pull Request #138278 · python/cpython · GitHub

Open Graph Title: gh-138277: Elevate Built-in Types and Functions in Documentation Search by adqm · Pull Request #138278 · python/cpython

X Title: gh-138277: Elevate Built-in Types and Functions in Documentation Search by adqm · Pull Request #138278 · python/cpython

Description: This patch adds a custom search scorer for the Python docs, in the hopes of making the search results more useful. For now, this just increases the score of built-in functions and types so that they show up closer to the top of the relevant search results, though it also opens the door to other improvements. I also have a couple of other ideas that might further improve the ordering, but I figured it'd be best to start small. With this change: When searching "str", the built-in str type goes from being the 44th result to the 1st. When searching "set", the built-in set type goes from being the 14th result to the 1st. When searching "int", the built-in int type now shows up above tkinter and pprint. I don't think this needs a news item, but I can add one if y'all think it's necessary. Issue: gh-138277 📚 Documentation preview 📚: https://cpython-previews--138278.org.readthedocs.build/

Open Graph Description: This patch adds a custom search scorer for the Python docs, in the hopes of making the search results more useful. For now, this just increases the score of built-in functions and types so that th...

X Description: This patch adds a custom search scorer for the Python docs, in the hopes of making the search results more useful. For now, this just increases the score of built-in functions and types so that th...

Opengraph URL: https://github.com/python/cpython/pull/138278

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:99790a42-c935-ff34-829c-3e4edecb234b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9106:3D97C8:33DAA16:44FC337:6B01F8D8
html-safe-nonceb8908639dd882ce495da80fbb0dd36606ff439aaceaa3d2e559e99b868f81f0d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTA2OjNEOTdDODozM0RBQTE2OjQ0RkMzMzc6NkIwMUY4RDgiLCJ2aXNpdG9yX2lkIjoiNDEwMzI4ODgzODcyNDY0NzEyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6b082879130a972c09503d6e7a47c0e05027d467d30faa07c2e3db64773928b0
hovercard-subject-tagpull_request:2787371858
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/138278/files
twitter:imagehttps://avatars.githubusercontent.com/u/549404?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/549404?s=400&v=4
og:image:altThis patch adds a custom search scorer for the Python docs, in the hopes of making the search results more useful. For now, this just increases the score of built-in functions and types so that th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/138278/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138278%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138278%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/138278/files
Reloadhttps://github.com/python/cpython/pull/138278/files
Reloadhttps://github.com/python/cpython/pull/138278/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
StanFromIrelandhttps://github.com/StanFromIreland
python:mainhttps://github.com/python/cpython/tree/main
adqm:search_scoringhttps://github.com/adqm/cpython/tree/search_scoring
Conversation 40 https://github.com/python/cpython/pull/138278
Commits 15 https://github.com/python/cpython/pull/138278/commits
Checks 40 https://github.com/python/cpython/pull/138278/checks
Files changed https://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
gh-138277: Elevate Built-in Types and Functions in Documentation Search https://github.com/python/cpython/pull/138278/files#top
Show all changes 15 commits https://github.com/python/cpython/pull/138278/files
915e580 docs search function: give a boost to built-in types and functions adqm Aug 29, 2025 https://github.com/python/cpython/pull/138278/commits/915e58089da963f8e7d38476035394702f12e5f2
2b46b78 rearrange scorer code and add comments adqm Aug 31, 2025 https://github.com/python/cpython/pull/138278/commits/2b46b78c909cebd258a8424f039b2aed196582d4
66b736c add news entry adqm Aug 31, 2025 https://github.com/python/cpython/pull/138278/commits/66b736ccc63a0e38c086208be0774ceae72bc634
97a8c74 tweak scoring a bit adqm Aug 31, 2025 https://github.com/python/cpython/pull/138278/commits/97a8c742b92fb6d92f4c3d80c5c744e571cc39b7
7e21628 remove comment about where customization stops adqm Aug 31, 2025 https://github.com/python/cpython/pull/138278/commits/7e216283f1c7a9567b2bdd863d50cd6f31d6c462
8da1ff7 move search scorer JS file out of Doc root adqm Aug 31, 2025 https://github.com/python/cpython/pull/138278/commits/8da1ff7ddd7881133412773b2f813f1a4be57bba
2ab5a16 Merge branch 'main' into search_scoring StanFromIreland Sep 8, 2026 https://github.com/python/cpython/pull/138278/commits/2ab5a162fb132a1ad938af165df4b1e97e3a1858
4624fdc add library/exceptions and library/exceptions to pages with boosted s… adqm Sep 10, 2026 https://github.com/python/cpython/pull/138278/commits/4624fdc1d0985ec749f2584e3825290e6dea650d
0bdf135 move search scoring stuff above config for sphinx extensions in conf.py adqm Oct 9, 2026 https://github.com/python/cpython/pull/138278/commits/0bdf1350dc0c499a4a393c780147317e15b6dee7
00edcd2 Revert "remove comment about where customization stops" adqm Oct 11, 2026 https://github.com/python/cpython/pull/138278/commits/00edcd2ad537ddd5406473880ab20f53abc94bbf
ab0b61d add reference to docs for search scorer adqm Oct 11, 2026 https://github.com/python/cpython/pull/138278/commits/ab0b61da14d97a1290c82199910db5054a0af510
4df6d89 Merge branch 'main' into search_scoring adqm Oct 13, 2026 https://github.com/python/cpython/pull/138278/commits/4df6d8902d0f42283296aa903fca8bc238b2d6d4
96c60a4 point to correct updated place for built-ins adqm Oct 13, 2026 https://github.com/python/cpython/pull/138278/commits/96c60a40c0031bd6c77c44056da298545541e439
f3aea19 Merge branch 'main' into search_scoring adqm Oct 17, 2026 https://github.com/python/cpython/pull/138278/commits/f3aea191c87239fee61a77ce4b8d5223fb85307e
549d8c3 Restrict boosted results to objects StanFromIreland Oct 24, 2026 https://github.com/python/cpython/pull/138278/commits/549d8c3b5b12383267f529f07a7d370e3679f813
Clear filters https://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
conf.py https://github.com/python/cpython/pull/138278/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
search_scorer.js https://github.com/python/cpython/pull/138278/files#diff-fad1dabe1ea85274c92b06fd46f95ebf3cb9d9676cf9e38c76b3f31f8068b204
2025-08-31-02-28-21.gh-issue-138277.kkORph.rst https://github.com/python/cpython/pull/138278/files#diff-2fef186cbc226b42f03ec96dc624839440d4022e468163aa1102e75c1638fc87
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L105
Doc/conf.pyhttps://github.com/python/cpython/pull/138278/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
View file https://github.com/adqm/cpython/blob/549d8c3b5b12383267f529f07a7d370e3679f813/Doc/conf.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/138278/{{ revealButtonHref }}
https://github.com/python/cpython/pull/138278/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
https://github.com/python/cpython/pull/138278/files#diff-bd848f922db8b27516214e75f544d03f48a19eeebfe2509341a7c18e0a115c8c
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L108
Doc/tools/static/search_scorer.jshttps://github.com/python/cpython/pull/138278/files#diff-fad1dabe1ea85274c92b06fd46f95ebf3cb9d9676cf9e38c76b3f31f8068b204
View file https://github.com/adqm/cpython/blob/549d8c3b5b12383267f529f07a7d370e3679f813/Doc/tools/static/search_scorer.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/138278/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
Misc/NEWS.d/next/Documentation/2025-08-31-02-28-21.gh-issue-138277.kkORph.rsthttps://github.com/python/cpython/pull/138278/files#diff-2fef186cbc226b42f03ec96dc624839440d4022e468163aa1102e75c1638fc87
View file https://github.com/adqm/cpython/blob/549d8c3b5b12383267f529f07a7d370e3679f813/Misc/NEWS.d/next/Documentation/2025-08-31-02-28-21.gh-issue-138277.kkORph.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/138278/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/138278/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.