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

SolrCmdDistributor does not distribute the openSearcher parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6.1, 4.7
    • Fix Version/s: 4.8, 6.0
    • Component/s: update
    • Labels:
      None

      Description

      The openSearcher parameter in a commit command is totally ignored by the SolrCmdDistributor :

      SolrCmdDistributor.java
       void addCommit(UpdateRequest ureq, CommitUpdateCommand cmd) {
          if (cmd == null) return;
          ureq.setAction(cmd.optimize ? AbstractUpdateRequest.ACTION.OPTIMIZE
              : AbstractUpdateRequest.ACTION.COMMIT, false, cmd.waitSearcher, cmd.maxOptimizeSegments, cmd.softCommit, cmd.expungeDeletes);
        }

      I think the SolrJ API should take this parameter in account as well.

        Attachments

        1. SOLR-5943.patch
          7 kB
          Ludovic Boutros
        2. SOLR-5943.patch
          4 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              lboutros Ludovic Boutros
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: