Skip to content

Improve search results and highlighting #2

Description

@amake

Search queries don’t quite work how you might expect: the pattern (string or regexp) is matched against (and highlighting applied to) each parsed token separately. So queries that one might expect to match will not match because the expected hit straddles multiple tokens.

Example: a string query foo/ bar or regexp query foo.*bar will not match the org content

/foo/ bar

because the tokens ['/', 'foo', '/'], 'bar' are each matched separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions