Skip to content

[BUG] subTitle and navTitle fields not searched due to case mismatch in TypoScript queryFields #4617

@amirarends

Description

@amirarends

Describe the bug
Searching does not return results matching content stored in the subTitle and navTitle fields, even though both fields are correctly indexed in Solr. The root cause is a case mismatch between the Solr schema and the TypoScript configuration. The schema (general_schema_fields.xml) defines the fields as subTitle and navTitle (camelCase), but the TypoScript references them as subtitle and navtitle (all lowercase). Since Solr field names are case-sensitive, the fields are indexed correctly but never included in the actual search query.

To Reproduce
Steps to reproduce the behavior:

  1. Index a page that has a subtitle set.
  2. Search for a keyword that only appears in the subtitle.
  3. No results are returned.

Expected behavior
Search results include documents where the search term matches content in subTitle or navTitle.

Additional context
Configuration/TypoScript/Solr/setup.typoscript references subtitle and navtitle in four places — queryFields, phrase.fields, bigramPhrase.fields, and trigramPhrase.fields — while the actual field names defined in Resources/Private/Solr/configsets/ext_solr_14_0_0/conf/general_schema_fields.xml are subTitle (line 101) and navTitle (line 102).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions