Skip to content

Order results by relevance #5

Description

@oscarotero

Hi.
Is it possible to order the results by relevance? For instance, right now when I search markdown I have the following result:
image

The first results are pages from "Getting started" or other pages with the word "markdown" in the content. And the page of the markdown plugin is way down in the results list. I think a page having this word in the title should be more relevant than a page with this word in the content. So I'd like to propose a way rank the results by relevance. For example:

  • If the term is in the title, it has 1.
  • If the term in in the main description, it has 0.5.
  • If the term is in a paragraph, it has 0.2.

This allows to order the page by rank and opens the door to implement in the future more advanced ranking features, like define different weights for different properties, or if the word is repeat, or is at the begining of the content, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions