Less strict logging in case field does not exist in Swiftype document type

Created on 7 April 2025, 17 days ago

Problem/Motivation

While having multiple document types within an index with different fields, we run into the issue the issue, that a lot of warnings are logged within SwiftypeBackend::setFacets method.

Steps to reproduce

  • database logging should be enabled
  • add new fields to an index for node and taxonomy term - but don't add all node fields to taxonomy terms
  • create a facet with a field, not added to both types
  • create a search page and add facets on the search page
  • run search and check logging
    • Warning: 'Field @field is not defined in document type @type' is logged

Proposed resolution

Since we may not have all fields added to any entity type within a search index, we should not log a warning. Instead we should simply log an info message.

I'll add a Merge Request fixing the issue. .

📌 Task
Status

Active

Version

10.0

Component

Code

Created by

🇩🇪Germany SteffenR Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024