bad search results for entries with hyphens #2209

Closed
opened 2026-04-06 03:12:59 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @ghost on 2/9/2022

Subject of the issue

Bad search results for entries with hyphens.
It think it is a bug because there is no special treatment for hyphen or dashes in the basic search according to the documentation.

Deployment environment

  • vaultwarden version: 1.24.0
  • Install method: docker
  • Reverse proxy and version: nginx 1.20.2
  • MySQL/MariaDB or PostgreSQL version: no
  • Other relevant details: no

Steps to reproduce

  • create two entries in the database: "githubtest-pru.com" and "githubtest.com"
  • result of basic search "githubtest" is correct: the 2 entries
  • result of basic search "githubtest." is correct: 1 entry "githubtest.com"
  • result of basic search "githubtest-pru" IS INCORRECT: the 2 entries

Expected behaviour

  • result of basic search "githubtest-pru" should be 1 entry "githubtest-pru.com"

Actual behaviour

  • result of basic search "githubtest-pru" IS INCORRECT: the 2 entries
*Originally created by @ghost on 2/9/2022* ### Subject of the issue Bad search results for entries with hyphens. It think it is a bug because there is no special treatment for hyphen or dashes in the basic search according to the [documentation](https://bitwarden.com/help/searching-vault/#basic-search). ### Deployment environment * vaultwarden version: 1.24.0 * Install method: docker * Reverse proxy and version: nginx 1.20.2 * MySQL/MariaDB or PostgreSQL version: no * Other relevant details: no ### Steps to reproduce * create two entries in the database: "githubtest-pru.com" and "githubtest.com" * result of basic search "githubtest" is correct: the 2 entries * result of basic search "githubtest." is correct: 1 entry "githubtest.com" * result of basic search "githubtest-pru" IS INCORRECT: the 2 entries ### Expected behaviour * result of basic search "githubtest-pru" should be 1 entry "githubtest-pru.com" ### Actual behaviour * result of basic search "githubtest-pru" IS INCORRECT: the 2 entries
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#2209