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

Support missing versionField on indexed docs in DocBasedVersionConstraintsURP

    XMLWordPrintableJSON

Details

    Description

      If we want to start using DocBasedVersionConstraintsUpdateRequestProcessor on an existing index, we have to reindex everything to set value for the 'versionField' field, otherwise We can't start using DocBasedVersionConstraintsUpdateRequestProcessor on an existing index because we get this line throwing shade:

      throw new SolrException(SERVER_ERROR,
              "Doc exists in index, but has null versionField: "
                      + versionFieldName);
      

      We have to reindex everything into a new collection, which isn't always practical/possible. The proposal here is to have an option to allow the existing docs to be missing this field and to simply treat those docs as older than anything coming in with that field set.

      Attachments

        1. SOLR-12378.patch
          16 kB
          Mark Miller
        2. SOLR-12378.patch
          12 kB
          Mark Miller
        3. supportMissingVersionOnOldDocs-v1.patch
          14 kB
          Oliver Bates

        Activity

          People

            markrmiller@gmail.com Mark Miller
            obates Oliver Bates
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: