Automattic / Automattic/simplenote-ios

Searching using quotation marks returns unexpected results

Open
#857 6 comments 0 reactions 0 assignees View on GitHub
[feature] search bug search improvements
Dominant language
Swift
Stars
2.2k
Forks
297
Avg merge
13h 25m
Merged PRs (30d)
6

Description

### Expected
When searching in the app I would expect the same process to find an exact phrase to work in the iOS app as Electron

### Observed
When a search is entered in like this `"search phrase"` in iOS no results return. On Electron the desired results, containing only the exact `search phrase` show. To show any results for those words on iOS I have to remove the `" "` marks. If I add the quotes to the phrase I'm searching for within the note results are returned.

### Steps to reproduce
1. Open your app
2. Enter quotes around a search phrase

#### Without quotes

![](https://blogmcblogghome.files.wordpress.com/2020/08/img_0046.png)
(Image link: https://blogmcblogghome.files.wordpress.com/2020/08/img_0046.png )

#### With quotes

![](https://blogmcblogghome.files.wordpress.com/2020/08/img_0047.png)
(Image link: https://blogmcblogghome.files.wordpress.com/2020/08/img_0047.png )

Make|Model|iOS Version|App Version
-|-|-|-
iPad |7th gen|13.6 |4.22.1

User reported #3244187-zen . Information above is from my test reproducing the issue.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the quoted-phrase search in the iOS app using the issue's steps, then compare its behavior with Electron. Done means quoted searches return results containing only the exact phrase, matching the expected Electron behavior, while unquoted searches continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.