Automattic / Automattic/jetpack

Search: add support for excluding terms

Open
#8,627 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Search [Status] Proposal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

It looks like Core supports excluding terms: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-query.php#L1337

I guess this means that we need to do something also even though no one ever uses that syntax. This probably needs more data, but adding an issue to track it.

Contributor guide

Open the contributing guide

Research direction

Start with the linked WordPress Core WP_Query reference and compare its excluded-term syntax with Jetpack's search implementation. Gather usage or search-result examples before deciding the expected behavior; the work is done when the supported syntax and resulting exclusions are documented by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.