Skip to content

Conversation

@ebembi-crdb
Copy link
Contributor

Problem

Session variables like default_transaction_use_follower_reads were not discoverable through
docs search, despite being documented. Customers searching for these variables got "No
results" even though the documentation existed.

Root Cause

  • Session variable names appeared only in table cells that were filtered during indexing
  • Variable descriptions were indexed but didn't contain the variable names
  • This made pages undiscoverable when searching by variable name

Solution

Enhanced the indexing logic to prepend session variable names to their descriptions for the
session-variables.html page. This makes variables discoverable without creating additional
index records.

Before: Search for default_transaction_use_follower_reads → 0 results
After: Search finds session-variables.html with "default_transaction_use_follower_reads:
If set to on, all read-only transactions use..."

Changes

  • Added enhance_session_variable_content() function to detect and enhance session variable
    descriptions
  • Integrated enhancement into extraction pipeline for session-variables.html only
  • Preserves existing functionality while improving discoverability

Impact

  • 43+ session variables now discoverable through search
  • Zero record inflation (same 67 records, enhanced content)
  • Resolves customer discoverability issues
  • No impact on other pages or existing search functionality

Testing

  • Verified target variable now appears in search results
  • Confirmed no regressions in other session variable searches
  • Validated record count remains unchanged

Enhance session variable descriptions with variable names to improve
search discoverability. Session variables like default_transaction_use_follower_reads
were not findable via search because variable names appeared only in
filtered table cells while descriptions lacked the variable names.

The fix prepends session variable names to their descriptions for
session-variables.html, making them discoverable without creating
additional index records.

Fixes issue where customers couldn't find documented session variables
through main docs search functionality.
@github-actions
Copy link

Files changed:

  • src/current/algolia_index_intelligent_bloat_removal.py

@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit 3b87207
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/6904df679694310008c63259

@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit 3b87207
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/6904df670335e20008e2957f

@netlify
Copy link

netlify bot commented Oct 23, 2025

Netlify Preview

Name Link
🔨 Latest commit 3b87207
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6904df675f460e0008cd7def
😎 Deploy Preview https://deploy-preview-20762--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@mohini-crl mohini-crl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ebembi-crdb ebembi-crdb merged commit 5710ec8 into main Oct 31, 2025
5 checks passed
@ebembi-crdb ebembi-crdb deleted the fix-session-variable-search branch October 31, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants