nextcloud / nextcloud/contacts

Order / Priority of Search Results

Open
#2,603 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: search
Dominant language
JavaScript
Stars
642
Forks
221
Avg merge
14h 39m
Merged PRs (30d)
51

Description

Hi,
it is great that the unified search looks into all fields of the contacts.
But it leads to many results, which are sorted by the contact name(?).

I think it would be nice to prioritize the search results:

  • "First show hits where search string is in the name field".

To give an example: We have many contacts with the word "operator" in title or notes.
When I search for a contact by the name "Pera", it is far down the list, after all operators with names from A to P.
This situation happens quite a lot, not only with Pera ;-)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the unified contact search and the code that orders its results. Confirm how matches in the name field are identified and prioritized over matches in titles or notes; done means name matches appear first while the existing search still finds matches across all contact fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.