Skip to content
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

Search result ranking improvements #11741

Open
mhilbrunner opened this issue Nov 4, 2024 · 1 comment
Open

Search result ranking improvements #11741

mhilbrunner opened this issue Nov 4, 2024 · 1 comment
Labels
Improvement Minor improvement to code

Comments

@mhilbrunner
Copy link

What's the problem this feature will solve?

Currently, the search results are ranked suboptimally in some ways.

  • Exact matches, all terms being in the exact order (as opposed to matching only parts, or in different term order) seem to not be valued enough.
  • Titles and document file names seem to count too little. These are the results for searching "audio" in Godot's documentation, note how "Documentation changelog" is ranked above a page titled "Audio buses":
    image

#8670 would go a long way in helping with some of the cases we discovered, but the above should (hopefully) be fairly general improvements.

@humitos humitos added the Improvement Minor improvement to code label Nov 4, 2024
@stsewd
Copy link
Member

stsewd commented Nov 4, 2024

Exact matches, all terms being in the exact order (as opposed to matching only parts, or in different term order) seem to not be valued enough.

Do you have a search example for this case?

Titles and document file names seem to count too little.

These are the boost we set for page title and section titles

_outer_fields = ["title^1.5"]
_section_fields = ["sections.title^2", "sections.content"]

We can try boosting the page title with 2 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code
Projects
None yet
Development

No branches or pull requests

3 participants