Automattic / Automattic/jetpack

Search: exclude "media" post type by default

Open
#19,142 0 comments 0 reactions 0 assignees View on GitHub
[Feature] 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.
The "media" post type is enabled by default on sites with Jetpack Search. Results of this type are often not very useful:

Screen Shot 2021-03-12 at 12 05 09

#### Describe the solution you'd like
The post type "media" is turned off by default. Users can turn it back on using the 'excluded post types' configuration in Customizer.

#### Additional context
We noticed this on the Automattic Field Guide. The first relevant result was in 3rd position, when it would have been at the top with the media post type excluded.

cc @jsnmoon who suggested this idea.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the Jetpack Search configuration and the Customizer's excluded post types setting; verify how default post types are selected. Done means media is excluded by default while users can still re-enable it through that configuration, with relevant tests updated or added if they exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.