Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28738

Empty fields are not indexed in solr platform

    Details

    • Sprint:
      Candidates for next sprint

      Description

      When an empty textline field is stored it will be not indexed at all and the field will not appear in the Solr index.

      Used version of the solr-bundle:

      ezsystems/ezplatform-solr-search-engine v1.5.1
      on eZ Platform V 2.0

      This means that you cannot search in you application for an empty field value!

      See: ezplatform-solr-search-engine/lib/FieldMapper/ContentTranslationFieldMapper/BlockDocumentsContentFields.php

      if ($indexField->value === null) {
        // continue; // Fix fd see http://confluence.extranet.silversolutions.de:8090/display/EZcom/Search+issues+for+eZ+Systems
      }
      

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          Hello Frank.

          I'm gonna take that issue with the development team. Until we figure what we will do about it exactly, I suggest you decorate the code that prevents them from being indexed in order to work around the problem for eZ Commerce.

          Do you have an example of a case where searching for an empty value is relevant for you ?

          Thank you.

          Show
          Bertrand Dunogier added a comment - Hello Frank. I'm gonna take that issue with the development team. Until we figure what we will do about it exactly, I suggest you decorate the code that prevents them from being indexed in order to work around the problem for eZ Commerce. Do you have an example of a case where searching for an empty value is relevant for you ? Thank you.
          Hide
          Frank Dege added a comment -

          Hello Bertrand,

          thanks for pushing it forward.

          The use case is:

          • we are storing textmodules in eZ
          • a textmdoule provide an identifier (e.g. basket_intro), a domain (optional, can be empty) and a richtext for the text to be displayed

          If you search for identifier = "basket_intro" and domain="" nothing will be found since solr did not have this field in the index due to the issue described.
          If a domain is set it works.

          The issue in eZ Commerce is that some textmdodules (having domain="") will not be displayed and the identifier appears instead of the richttext.

          best
          Frank

          Show
          Frank Dege added a comment - Hello Bertrand, thanks for pushing it forward. The use case is: we are storing textmodules in eZ a textmdoule provide an identifier (e.g. basket_intro), a domain (optional, can be empty) and a richtext for the text to be displayed If you search for identifier = "basket_intro" and domain="" nothing will be found since solr did not have this field in the index due to the issue described. If a domain is set it works. The issue in eZ Commerce is that some textmdodules (having domain="") will not be displayed and the identifier appears instead of the richttext. best Frank

            People

            • Assignee:
              Andrzej Longosz
              Reporter:
              Frank Dege
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: