Magento 2.3 Elastic Search 5.0+ Error on some pages
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.
magento2 elasticsearch
add a comment |
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.
magento2 elasticsearch
add a comment |
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.
magento2 elasticsearch
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.
magento2 elasticsearch
magento2 elasticsearch
asked Dec 29 '18 at 14:14
Mehdi RafiaiMehdi Rafiai
7215
7215
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Same problem here with a different attribute:
Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
UPDATE: I found this not to be a problem in Magento, but in Elastic-Search. In order to upgrade our shop from Magento 2.2.6 to 2.2.7 (and later 2.3) we manually had to create a "manufacturer" attribute, as described here Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist
This attribute caused Elasticsearch to throw an exception because "manufacturer" was created as a text-field and fielddata is disabled on text-fields by default.
The solution for us was to disable Search for the manufacturer-attribute ("Use in Search" => "No") in the Magento-Backend.
New contributor
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256157%2fmagento-2-3-elastic-search-5-0-error-on-some-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Same problem here with a different attribute:
Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
UPDATE: I found this not to be a problem in Magento, but in Elastic-Search. In order to upgrade our shop from Magento 2.2.6 to 2.2.7 (and later 2.3) we manually had to create a "manufacturer" attribute, as described here Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist
This attribute caused Elasticsearch to throw an exception because "manufacturer" was created as a text-field and fielddata is disabled on text-fields by default.
The solution for us was to disable Search for the manufacturer-attribute ("Use in Search" => "No") in the Magento-Backend.
New contributor
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
add a comment |
Same problem here with a different attribute:
Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
UPDATE: I found this not to be a problem in Magento, but in Elastic-Search. In order to upgrade our shop from Magento 2.2.6 to 2.2.7 (and later 2.3) we manually had to create a "manufacturer" attribute, as described here Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist
This attribute caused Elasticsearch to throw an exception because "manufacturer" was created as a text-field and fielddata is disabled on text-fields by default.
The solution for us was to disable Search for the manufacturer-attribute ("Use in Search" => "No") in the Magento-Backend.
New contributor
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
add a comment |
Same problem here with a different attribute:
Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
UPDATE: I found this not to be a problem in Magento, but in Elastic-Search. In order to upgrade our shop from Magento 2.2.6 to 2.2.7 (and later 2.3) we manually had to create a "manufacturer" attribute, as described here Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist
This attribute caused Elasticsearch to throw an exception because "manufacturer" was created as a text-field and fielddata is disabled on text-fields by default.
The solution for us was to disable Search for the manufacturer-attribute ("Use in Search" => "No") in the Magento-Backend.
New contributor
Same problem here with a different attribute:
Exception #0 (Exception): Notice: Undefined index: belastbarkeit_bucket in /var/www/public/vendor/magento/module-elasticsearch/SearchAdapter/Aggregation/Builder/Term.php on line 23
UPDATE: I found this not to be a problem in Magento, but in Elastic-Search. In order to upgrade our shop from Magento 2.2.6 to 2.2.7 (and later 2.3) we manually had to create a "manufacturer" attribute, as described here Magento 2.2.6 - Attribute with ID "Manufacturer" does not exist
This attribute caused Elasticsearch to throw an exception because "manufacturer" was created as a text-field and fielddata is disabled on text-fields by default.
The solution for us was to disable Search for the manufacturer-attribute ("Use in Search" => "No") in the Magento-Backend.
New contributor
edited yesterday
New contributor
answered yesterday
T.EichmannT.Eichmann
12
12
New contributor
New contributor
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
add a comment |
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
I only yesterday found out that it was caused by a module that was part of the theme, they included a layered navigation which they had updated, disabling it fixed the problem and I was still able to get the speed Elastic-Search offered. Your fix is duly noted though and I will try that by enabling the module again. The theme developer would appreciate knowing that if it sorts it. Thanks!
– Mehdi Rafiai
yesterday
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f256157%2fmagento-2-3-elastic-search-5-0-error-on-some-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown