Automattic / Automattic/jetpack

Instant Search: allow default results to be turned off

Open
#19,175 3 comments 1 reaction 0 assignees View on GitHub
[Feature] Search [Plugin] Search Instant Search New Feature
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Is your feature request related to a problem? Please describe.
When you open the Jetpack Search modal without a query, results are still shown. If sorting by relevance, these will be the posts and pages deemed the most relevant across the whole site. The idea is that the user can start with all results and then use filters to find what they want.

![screen_shot_2021-03-15_at_11 59 16_am_720](https://user-images.githubusercontent.com/17325/111246907-fda4f100-866b-11eb-83d2-d4578407cffa.png)

A user has reported that the first two pages shown on their default results are very old posts and are not especially relevant. They would like the ability to turn off the default results when a search query has not been entered.

#### Describe the solution you'd like
The user is able to turn off the default results using Jetpack Search settings.

We should also consider making this the default option for new users.

#### Describe alternatives you've considered
We could improve the relevance search. In this case, reducing the relevance score of older results would have helped somewhat.

#### Additional context
Slack conversation: p1615844037002700-slack-CLKR331CM

Contributor guide

Open the contributing guide

Research direction

The issue identifies the Jetpack Search modal and Jetpack Search settings as the relevant entry points, but names no files or tests. Start by locating the modal's empty-query behavior and the settings that control Search results. Done means a setting can disable default results, with the new-user default clarified and covered by the project's existing tests.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.