Automattic / Automattic/jetpack

Jetpack (Instant) Search: show private posts if user is logged in

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

Description

#### Steps to reproduce the issue

1. Set up a public site with both private and public posts
2. Do a search looking for a private post
3. Private posts will not show on search results

#### What I expected
The default WordPress search page will show private posts to logged users. I expected Instant Search to do the same and also show private posts.

For context, I have private and public posts mixed on several of my sites and not having access to my private posts by searching for them makes Instante Search _less_ useful than the default search.

#### What happened instead
Private posts are not listed in Instant Search results.

This is compounded by the fact that Instant Search takes over the default search URL making it impossible to look for posts from the public site using any other method unless it is deactivated completely

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named in the issue. Start by locating the Jetpack Instant Search implementation and its search-result tests, then reproduce the logged-in search against a site containing private and public posts. Done means permitted private posts appear for logged-in users without exposing them to logged-out visitors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.