Skip to content

[5.x]: Default title field not being indexed for entry types #15025

@pascalminator

Description

@pascalminator

What happened?

Description

The default title field is being indexed correctly for sections, and I can search and get results appropriately. However, the same default title field is not being indexed when used inside an entry type for a Matrix block (see attached screenshot below for better context).

Steps to reproduce

  1. Add an entry type to a section and keep the default title field.
  2. Save any value in the title field.
  3. Try to search for the value saved in the title field.
  4. No results are found for the title field within the Matrix block entry type.

Expected behavior

All "title" fields should be indexed, no matter where they are used. Ideally, the system should index the title fields within Matrix blocks just as it does for sections. Alternatively, there should be an option to control this indexing behavior with a checkbox, similar to custom fields.

Actual behavior

The default title field within Matrix block entry types is not being indexed, preventing searches from returning results for values in these title fields.

index-issue-title

Craft CMS version

5.1.3

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions