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

semanticsMode consistency acts like classic-consistency-hybrid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: update

      Description

      Code like the following, run with semanticsMode set to "consistency", should fail on the second doc. Instead, it's acting like classic-consistency-hybrid, where it treats the second doc as if it should always overwrite. (Going by docs in http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics as it's the only place where this feature added 2 releases ago is as yet documented.)

      String id = UUID.randomUUID().toString();
      SolrInputDocument docA = new SolrInputDocument();
      docA.addField("id", id);
      docA.addField("version", -1);
      SolrInputDocument docB = new SolrInputDocument();
      docB.addField("id", id);
      // intentionally omit version
      solrServer.add(docA);
      solrServer.add(docB);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                samkass Sam Kass
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: