Title: [FR] Communicate when a zoekt search limit is hit · Issue #504 · sourcebot-dev/sourcebot · GitHub
Open Graph Title: [FR] Communicate when a zoekt search limit is hit · Issue #504 · sourcebot-dev/sourcebot
X Title: [FR] Communicate when a zoekt search limit is hit · Issue #504 · sourcebot-dev/sourcebot
Description: Problem We have a set of configurable limits that Zoekt uses to determine when to terminate a search: SHARD_MAX_MATCH_COUNT // Maximum number of matches: skip all processing an index shard after we found this many non-overlapping matches...
Open Graph Description: Problem We have a set of configurable limits that Zoekt uses to determine when to terminate a search: SHARD_MAX_MATCH_COUNT // Maximum number of matches: skip all processing an index shard after we...
X Description: Problem We have a set of configurable limits that Zoekt uses to determine when to terminate a search: SHARD_MAX_MATCH_COUNT // Maximum number of matches: skip all processing an index shard after we...
Opengraph URL: https://github.com/sourcebot-dev/sourcebot/issues/504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FR] Communicate when a zoekt search limit is hit","articleBody":"## Problem\n\nWe have a set of configurable limits that Zoekt uses to determine when to terminate a search:\n\n```\nSHARD_MAX_MATCH_COUNT // Maximum number of matches: skip all processing an index shard after we found this many non-overlapping matches.\nTOTAL_MAX_MATCH_COUNT // Maximum number of matches: stop looking for more matches once we have this many matches across shards.\nZOEKT_MAX_WALL_TIME_MS // Abort the search after this much time has passed.\n```\n\nCurrently, there is no UX or logs to signal when these limits are hit, resulting in inaccurate results and user confusion. This is especially bad for queries that need to be **exhaustive**, e.g.,\n- \"does X exist anywhere?\" (this could hit the max wall time)\n- \"how many instances of Y exist?\" (this could hit both the max wall time and the max match counts)\n\n## Proposed Solution\n\nAdd some UX to communicate when a search limit has been hit and why.\n\nRelated #495 ","author":{"url":"https://github.com/brendan-kellam","@type":"Person","name":"brendan-kellam"},"datePublished":"2025-09-11T23:55:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/504/sourcebot/issues/504"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd506101-4163-3e39-4086-50de762db3d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C24E:14FBB8:B44300:F74835:6A4DC286 |
| html-safe-nonce | e9ca48cff89f9820f2443c0442aa587d7cfe2578310606b84c714c6c27e6fed0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjRFOjE0RkJCODpCNDQzMDA6Rjc0ODM1OjZBNERDMjg2IiwidmlzaXRvcl9pZCI6IjQxMzQ0ODg0NTE4MTM1ODk2MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c8589b878c21b829cbdf00a1355f99f6b2c89e3de074832089480e2b57ca15d9 |
| hovercard-subject-tag | issue:3408366725 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sourcebot-dev/sourcebot/504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a78c83cd80944a720abfd57c52debc3a1d96a24688054b2c433e6f94bebe726b/sourcebot-dev/sourcebot/issues/504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a78c83cd80944a720abfd57c52debc3a1d96a24688054b2c433e6f94bebe726b/sourcebot-dev/sourcebot/issues/504 |
| og:image:alt | Problem We have a set of configurable limits that Zoekt uses to determine when to terminate a search: SHARD_MAX_MATCH_COUNT // Maximum number of matches: skip all processing an index shard after we... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brendan-kellam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/sourcebot-dev/sourcebot git https://github.com/sourcebot-dev/sourcebot.git |
| octolytics-dimension-user_id | 135396723 |
| octolytics-dimension-user_login | sourcebot-dev |
| octolytics-dimension-repository_id | 846729675 |
| octolytics-dimension-repository_nwo | sourcebot-dev/sourcebot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 846729675 |
| octolytics-dimension-repository_network_root_nwo | sourcebot-dev/sourcebot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width