Bitwarden can't search an exact string with - characters in the name

Bitwarden is apparently unable to successfully complete a search with dashes in the search term.

All of our servers are names in the following manner: xxx-yyy-zzz.
Even though I can plainly see entries in my vault with a particular name foo-bar-p01 for example,

a search of foo-bar-p01 returns all values containg “foo” or “bar” or “p01”.

How can I get Bitwarden to search for only the specific string (in this case machine name) that I am searching for?

Thanks.

@jilocasin Welcome to the forum!

Unfortunately, this is not possible. The search engine used in Bitwarden (Lunr) can only search for “tokens”, where tokens are any contiguous strings of text separated by whitespace and/or hyphen characters -. Thus, if your item name is xxx-yyy-zzz, this will be represented in the search index as three separate tokens (xxx, yyy, and zzz). Lunr cannot search for phrases (exact sequences of two or more tokens).

However, on non-mobile devices, you may get decent results using an advanced search expression of the following form:

>+foo +bar +p01

or (if too many false positives with the above version):

>+name:foo +name:bar +name:p01

The above will expressions will search for vault entries that contain all three tokens (in the second version, it is also required that all three tokens be located in the item name field).

An alternative work-around would be to rename your vault entries so that the login credentials for server foo-bar-p01 or stored in a vault item with the name foo_bar_p01.

1 Like