Skip to content

fix: improve search functionality for period-prefixed terms #290

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

Closed
wants to merge 1 commit into from

Conversation

roomote[bot]
Copy link
Contributor

@roomote roomote bot commented Aug 1, 2025

This PR fixes the issue where searching for terms that start with a period (like ".rooignore" or ".gitignore") returns no results.

Problem

The default search configuration was filtering out special characters and applying stemming, which prevented exact matches for terms like ".rooignore".

Solution

Updated the Docusaurus search plugin configuration to:

  • Remove the default stemmer to allow exact matches
  • Remove the stop word filter to allow searching for common words
  • Increase search result limits from 8 to 20 for better visibility
  • Increase search result context length from 50 to 100 characters for more context

Testing

  • Built the documentation site successfully with npm run build
  • The configuration changes should allow the search to find period-prefixed terms

Fixes RooCodeInc/Roo-Code#6508


Important

Improves search functionality for period-prefixed terms by updating search configuration in docusaurus.config.ts.

  • Search Configuration:
    • In docusaurus.config.ts, removed default stemmer and stop word filter to allow exact matches and searching for common words.
    • Increased search result limits from 8 to 20 and context length from 50 to 100 characters for better visibility and context.

This description was created by Ellipsis for 7ad558d. You can customize this summary. It will automatically update as commits are pushed.

…ignore

- Remove default stemmer to allow exact matches
- Remove stop word filter to allow searching for common words
- Increase search result limits from 8 to 20
- Increase search result context length from 50 to 100 characters

This should fix the issue where searching for terms like ".rooignore" or ".gitignore" returns no results.

Fixes RooCodeInc/Roo-Code#6508
Copy link

vercel bot commented Aug 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
roo-code-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 1:17am

@daniel-lxs
Copy link
Collaborator

@roomote-agent this doesn't fix the issue, when using the search bar on the website I can't use terms like .gitignore

@daniel-lxs daniel-lxs marked this pull request as draft August 1, 2025 01:25
@daniel-lxs daniel-lxs moved this from Triage to PR [Draft / In Progress] in Roo Code Roadmap Aug 1, 2025
@github-project-automation github-project-automation bot moved this from PR [Draft / In Progress] to Done in Roo Code Roadmap Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

When searching help docs if there is a period (.) in front of the search it will not return results.
3 participants