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

Troubleshooting while indexing Content Types object with ezgmaplocation attribute

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • None
    • 1.9.1, 1.11.0
    • php 7.1
      Solr 6.4.2 or 6.6.0
      ezplatform-solr-search-engine 1.3.0 or 1.4.2

    Description

      Hello,

      In one of my projects, i added an “ezgmaplocation” attribute in an existing Content Type.

      Since then, when i try to launch ‘php app/console ezplatform:reindex’ command i am having this error message:

      "ERROR: [doc=location845langfrefr] multiple values encountered for non multiValued field content_location_value_location_gl: [, ]"

      Regarding my log, i was hoping that having the "multiValued" forced would help me.
      But, when i tried to update my

      /opt/solr/server/ez/template/schema.xml

      like this:

      <dynamicField name="*_gl" type="location" indexed="true" stored="true" multiValued="true"/>

      I since got a new error message:

      Point must be in \'lat, lon\' or \'x y\' format:

      I tried a curl solr request in order to try to send a basic maplocation-like attribute with this form

      my_attr_gl: [$myLat, $myLong]

      and it had been accepted.

      Step to reproduce:
      1- Create content type containing various attributes excepting ezgmaplocation
      2- Create some content
      3- Index content in Solr, it should work well
      4- Update Content Type by adding an ezgmaplocation attribute
      5- Try reindexing content, it should give you error log

      Please not that regarding my logs this should also appeared without editing an existing Content Type, by creating by default a Content Type with an ezgmaplocation field.
      It seems that global solr ezgmaplocation field configuration got an issue.

      Thank you in advance.

      Regards,

      Attachments

        Activity

          People

            Unassigned Unassigned
            ecf7a874-0f44-4c01-ae93-af9291908d9e@accounts.ibexa.co Andrieux Alexandre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: