Solr Error : ["undefined field local"] errors in the logs


Description

Errors similar to the following can be found in the log records:

Error: Solr Error : ["undefined field query"] - Query attempted: [query: <name of field>]

or

Error: Solr Error : ["undefined field local"] - Query attempted: [local: <name of field>]

The root cause of this issue is that all queries that start from the query: or local: prefix lead to generating the query to Solr. However, a request to the index during resolving the data source for the SXA component must not be sent.

Solution

To resolve the issue, consider one of the following options:

Note that the issue does not affect the resolving data source process, therefore, such errors can be safely ignored.