Automattic / Automattic/simplenote-android

Search: Add Relevance Sorting

Open
#873 1 comment 0 reactions 0 assignees View on GitHub
[Type] Enhancement
Dominant language
Java
Stars
1.9k
Forks
318
Avg merge
15h 23m
Merged PRs (30d)
5

Description

Add the logic for the ***Relevance*** sorting option such that each match to the search query is as follows:
- 2.0 points per instance in title
- 1.0 point per instance in body
- 0.25 points per instance in tag

Notes with identical points will be ordered by most recently modified.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Android search implementation and the code that orders matching notes; the issue defines the scoring weights for title, body, and tags. Verify that equal scores are ordered by most recently modified, then run the existing search tests if available and add coverage for the relevance and tie-breaking behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.