WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#32824 new feature request

Consistent search fields between posts and terms

Reported by: ashworthcreative Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

Searching for posts currently checks the post_title and post_content fields, while searching terms checks the name and slug fields. Could post_name be added to the where clause for posts, and description be added to terms? That way, searching would consistently check an entity's title, slug, and content.

Change History (4)

#1 @daniluk4000
4 years ago

  • Component changed from General to Posts, Post Types
  • Type changed from defect (bug) to feature request

#2 @DrewAPicture
2 years ago

  • Keywords dev-feedback added

I'd be interested in @johnbillion's take on adding these extra searchable fields by default.

#3 @johnbillion
2 years ago

  • Keywords needs-patch added; dev-feedback removed

Makes sense, but some performance impact numbers will be needed to ensure search queries don't get slowed down any more than they already are.

#4 @johnbillion
2 years ago

  • Version 4.3 deleted
Note: See TracTickets for help on using tickets.