element-hq / element-hq/element-web

Spotlight search should prioritize results from current space

Open
#20,559 0 comments 2 reactions 0 assignees View on GitHub
A-Search A-Spaces A-Spotlight-Search O-Occasional T-Enhancement
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Create a room named "general" outside of any space
2. Create a room named "general" inside of a space
3. Switch to that space's explore page
4. Open spotlight search and search for "general"

### Outcome

![Screenshot 2022-01-14 at 09-45-44 Element chiejio](https://user-images.githubusercontent.com/48614497/149534789-5e506020-edde-444b-b5d8-c9af73c30a13.png)

#### What did you expect?

The result for the space "Tỏaq", which I am currently in, should come first, since it is more likely to be relevant.

#### What happened instead?

Results from other spaces came first.

### Operating system

NixOS unstable

### Browser information

Firefox 95.0.2

### URL for webapp

develop.element.io

### Application version

Element version: 85f6c3b21f80-react-47c112b12e5d-js-129fb7f10f12 Olm version: 3.2.8

### Homeserver

townsendandsmith.ml

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.