Search
Full-text search, match highlighting and selecting results. Decisions: D-41.
- Finds notes by text
- Shared:
NotesCoreTest.searchResultsCarryWhereTheTermsMatch - Android UI:
HistorySearchTrashUiTest.searchFindsNotesByText - iOS UI:
HistorySearchTrashUITests.SearchFindsNotesByText
- Shared:
- No matches says so
- Android UI:
HistorySearchTrashUiTest.searchWithoutMatchesSaysSo - iOS UI:
HistorySearchTrashUITests.SearchWithoutMatchesSaysSo - Not tested: Shared
- Android UI:
- Matches visible text, not Markdown syntax
- Shared:
NotesCoreTest.searchMatchesVisibleTextNotSyntax - Not tested: Android UI, iOS UI
- Shared:
- Trashed notes aren’t found
- Shared:
NotesCoreTest.moveDeleteUndelete - Not tested: Android UI, iOS UI
- Shared:
- Every occurrence is found, ignoring case
- Shared:
SearchIndexTest.findsEveryOccurrenceIgnoringCase - Not tested: Android UI, iOS UI
- Shared:
- Each term of the query is matched
- Shared:
SearchIndexTest.findsEachTermOfTheQuery - Not tested: Android UI, iOS UI
- Shared:
- Overlapping and touching matches merge
- Shared:
SearchIndexTest.mergesOverlappingAndTouchingMatches - Not tested: Android UI, iOS UI
- Shared:
- Punctuation matches literally
- Shared:
SearchIndexTest.matchesPunctuationLiterally - Not tested: Android UI, iOS UI
- Shared:
- Match offsets index the original text even when lower-casing changes length
- Shared:
SearchIndexTest.offsetsIndexTheOriginalTextEvenWhereLowerCasingChangesLength - Not tested: Android UI, iOS UI
- Shared:
- An empty query matches nothing
- Shared:
SearchIndexTest.nothingMatchesAnEmptyQuery - Not tested: Android UI, iOS UI
- Shared:
- Selected results move together
- Android UI:
HistorySearchTrashUiTest.selectedSearchResultsMoveTogether - iOS UI:
HistorySearchTrashUITests.SelectedSearchResultsMoveTogether - Not tested: Shared
- Android UI:
- Selected results go to the trash together
- Android UI:
HistorySearchTrashUiTest.selectedSearchResultsGoToTheTrashTogether - iOS UI:
HistorySearchTrashUITests.SelectedSearchResultsGoToTheTrashTogether - Not tested: Shared
- Android UI:
The note lookup (inside a note) is in links-and-navigation.md.
Gaps
- Select all in search results, and undo after moving results, are untested.
- Results updating after a note is edited or deleted while search is open are untested.
- Non-Latin text (accents, Cyrillic, CJK) in queries is untested beyond the lower-casing offset case.