Magento 2.3 Elastic Search 5.0+ Error on some pages












0














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.










share|improve this question



























    0














    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.










    share|improve this question

























      0












      0








      0







      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.










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 29 '18 at 14:14









      Mehdi RafiaiMehdi Rafiai

      7215




      7215






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer










          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • 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













          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer










          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • 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


















          0














          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.






          share|improve this answer










          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • 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
















          0












          0








          0






          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.






          share|improve this answer










          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          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.







          share|improve this answer










          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited yesterday





















          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered yesterday









          T.EichmannT.Eichmann

          12




          12




          New contributor




          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          T.Eichmann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • 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






          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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          1300-talet

          1300-talet

          Display a custom attribute below product name in the front-end Magento 1.9.3.8