Skip to content
This repository was archived by the owner on Sep 4, 2023. It is now read-only.
This repository was archived by the owner on Sep 4, 2023. It is now read-only.

Search endpoint is hit/miss on bolding words #28

@khrome83

Description

@khrome83
[
    {
        "title": "An Unexpected Benefit of Tailwind CSS",
        "date": "2019-12-03T00:00:00.000Z",
        "description": "Utility <span class=\"font-bold\">CSS</span> frameworks can make it easier to refactor a codebase, or even change to a new framework.",
        "cover_image": "",
        "tags": [
            "<span class=\"font-bold\">svelte</span>",
            "<span class=\"font-bold\">vue</span>",
            "<span class=\"font-bold\"><span class=\"font-bold\">tailwind</span></span>css",
            "<span class=\"font-bold\"><span class=\"font-bold\">css</span></span>"
        ],
        "slug": "an-unexpected-benefit-of-tailwind-css",
        "path": "posts/an-unexpected-benefit-of-tailwind-css.md",
        "score": 0.08
    }
]

The endpoint is bolding CSS when found in the description, but not the title. When searching for tailwind it will find it within the title and mark it accordingly.

It could be an issue where CSS is at the end of the sentence

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions