bitwarden / bitwarden/clients

Full-text search does not appear to be respecting a space (as documentation states)

Open
#2,185 14 comments 0 reactions 0 assignees View on GitHub
browser bug
Dominant language
TypeScript
Stars
13.8k
Forks
2k
Avg merge
3d 9h
Merged PRs (30d)
393

Description

### Steps To Reproduce

1. Go to Bitwarden Add-on
2. Click on Search
3. Type `>name:American Airlines`

### Expected Result

results with **ONLY** `name = 'American Airlines'` only.

### Actual Result

results with `name = 'American Airlines'` **AND** `name = 'Jetblue Airlines'` **AND** `name = 'American Express'`

### Screenshots or Videos

![Screenshot from 2021-11-17 11-55-18](https://user-images.githubusercontent.com/361586/142246331-72428272-aa85-4ba5-900e-0b883c5220a5.png)

### Additional Context

According to [search documentation](https://bitwarden.com/help/article/searching-vault/#full-text-search) it looks like the space should be respected.

I've also attempted work-arounds with the following queries which have either no results or similar results:

* `>name:'American Airlines'`
* `>name:"American Airlines"`
* `>name:American+Airlines`
* `>name:American%20Airlines`

**NOTE** This is the same incorrect result as happening in https://vault.bitwarden.com

### Operating System

Linux

### Operating System Version

Ubuntu 20.04

### Web Browser

Chrome

### Browser Version

94.0.4606.71 (Official Build) (64-bit)

### Build Version

1.54.0

Contributor guide

Open the contributing guide

Research direction

No implementation file, test, or entry point is named in the issue. Start by reproducing `name:American Airlines` in the Bitwarden add-on and compare the behavior with the linked full-text search documentation. Done means the query returns only records whose name is exactly `American Airlines`, with the behavior covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.