Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10245

Error partial update location type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: update
    • Labels:
      None
    • Environment:

      Ubuntu 14.04

      Description

      Hi, have an issue with partial updates + solr location type
      In my schema I have the following fields
      <field name="Location" type="location" indexed="true" stored="true" multiValued="false"/>
      config is
      <dynamicField name="*_coordinates" type="double" indexed="true" stored="true" multiValued="false"/>
      <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinates"/>
      There is anohter field called numItems
      Im trying to do a partial update on numitems
      curl http://10.14.0.30:8080/solr/core/update/json -d '[{"Id":"1100543535","numItems":{"set":"8"}}]'
      After update the fiels _coordinates has two values
      And I get the following error
      1{"responseHeader":

      {"status":400,"QTime":3}

      ,"error":{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"ERROR: [doc=1100543535] multiple values encountered for non multiValued field Location_0_coordinates: [43.7501, 43.7501]","code":400}}
      I'm not updating that field, and if solr make some update internally I expect to make a set not add,

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              silvestrelosada Silvestre Losada
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: