Notice: Undefined variable: sort in SearchApiElasticsearchService->buildSearchQuery()

Created on 30 June 2013, about 11 years ago
Updated 15 February 2024, 5 months ago

When using Search API Views, the following errors occur when trying to add a sort.

Notice: Undefined variable: sort in SearchApiElasticsearchService->buildSearchQuery() (line 1043 of /var/www/example.com/drupal/sites/all/modules/search_api_elasticsearch/service.inc).
Recoverable fatal error: Argument 1 passed to Elastica_Query::setSort() must be an array, null given, called in /var/www/example.com/drupal/sites/all/modules/search_api_elasticsearch/service.inc on line 1043 and defined in Elastica_Query->setSort() (line 130 of /var/www/example.com/drupal/sites/all/libraries/Elastica/lib/Elastica/Query.php).

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024