I am running Magento 2.3 and set up elastic search 5.0+ which works fine on most pages but in some, including layered navigation search results I get the following error:
1 exception(s):
Exception #0 (Exception): Notice: Undefined index: color_bucket in
/home/tthh/public_html/vendor/magento/module-
elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
I've looked in Term.php and this is line 23:
foreach ($queryResult['aggregations'][$bucket->getName()]['buckets'] as
$resultBucket) {
Lastly, with elastic search enabled, I randomly now cannot press on any of the layered navigation (shop by) choices, an ajax gif shows up but the results do not change.
Changing back to MySQL search works fine.
Any insight into sorting this would be appreciated.

