Skip to content

Negative search doesn't work properly #3

@wrvsrx

Description

@wrvsrx

Description

Negative search works incorrectly when search starts with a negative search.

Reproduce

  1. Create a small repo with only one note

    ---
    title: duw
    tags: [test]
    ---
    There is no content
  2. Type -content in search box

  3. The note appears in search result.

Analysis

However, typing duw -content in search box works correctly. It seems that this bug only happens when a search starts with a negative search.

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