Skip to content

BUG: Instant Results template doesn’t generate when Post Search feature is disabled #4191

@burhandodhy

Description

@burhandodhy

Describe the bug

When the Post Search feature is disabled and the user activates the Instant Results, ElasticPress does resync the content but does not generate the search template.

Steps to Reproduce

  1. Ensure there is no existing search template (use wp elasticpress delete-search-template to delete it).
  2. Disable the Post Search feature.
  3. Activate Instant Results and wait for the sync to complete.
  4. Go to the frontend, search for anything, and EP opens the search modal, but the request returns an error.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions