Provide support for the default WP post lookup admin feature

Open
#1,397 0 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
elasticsearch, php
Domain
backend, search

Research direction

Start by tracing the WordPress REST search endpoint /wp-json/wp/v2/search?search=&per_page=20&type=post&locale=user and how the Protected Content feature handles search. Done means the activated feature takes over this post lookup, with the optional Search integration and published-content limitation resolved according to the project discussion.

Written by the indexing model from the issue text.

Description

enhancement front end module:protected-content

Is your enhancement related to a problem? Please describe.

This feature would speed up the ajax-based post lookup that happens when you click on the Link button in Gutenberg and search for a post on the site.
Screen Shot 2019-07-11 at 1 37 39 PM

Describe the solution you'd like

Take over the search behavior at /wp-json/wp/v2/search?search=&per_page=20&type=post&_locale=user if the plugin has the Protected Content feature activated. Optional: consider activating this if Search is active, limited obviously to published content. Might not be totally intuitive, but then again if this is for linking it would usually make sense to only show live articles (i.e. those that have a URL).

Designs

None.

Describe alternatives you've considered

Open to discussion :)

Additional context

Dominant language
PHP
Stars
1.3k
Forks
325
Avg merge
2d 11h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/ElasticPress

All issues in 10up/ElasticPress

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.