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

Required field cannot be satisfied by copyField

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      While trying to diagnose another problem, I tried the following pair of elements in my schema.xml:

       <uniqueKey>id</uniqueKey>
       <copyField source="bt_rni_Name_UID" dest="id"/>
      

      I can't insert documents; I get:

      org.apache.solr.common.SolrException: Document is missing mandatory uniqueKey field: id

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                bmargulies Benson Margulies
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: