Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack Search: authenticated requests are not working #13243

Closed
rebeccahum opened this issue Aug 16, 2019 · 0 comments · Fixed by #13244
Closed

Jetpack Search: authenticated requests are not working #13243

rebeccahum opened this issue Aug 16, 2019 · 0 comments · Fixed by #13244
Assignees
Labels
[Feature] Search For all things related to Search [Type] Bug When a feature is broken and / or not performing as intended
Milestone

Comments

@rebeccahum
Copy link
Contributor

rebeccahum commented Aug 16, 2019

To display non-public content, we usually ask for the authenticated_requests parameter be passed into the ES args here: https://wpvip.com/documentation/vip-go/elasticsearch-on-vip-go/#non-public-content

However, we're seeing that some setups where non-public content such as drafts that are supposed to be showing are no longer showing up.

Steps to reproduce the issue

  1. Assuming JP Search module is enabled, add filter to enable authenticated requests via JP:
add_filter( 'jetpack_search_es_query_args', function( $es_query_args ) {
    $es_query_args['authenticated_request'] = true;
 
    return $es_query_args;
} );
  1. Ensure es args have non-public content in search (e.g. post_type as drafts)
  2. Perform search

What I expected

Non-public content from that meet search arguments to returned from search.

What happened instead

Only public content meeting search arguments returned from search.

@jeherve jeherve added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Search For all things related to Search labels Aug 19, 2019
@jeherve jeherve added this to the 7.7 milestone Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Search For all things related to Search [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
2 participants