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

SolrCmdDistributor does not distribute the openSearcher parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6.1, 4.7
    • 4.8, 6.0
    • update
    • 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
          4 kB
          Shalin Shekhar Mangar
        2. SOLR-5943.patch
          7 kB
          Ludovic Boutros

        Activity

          People

            shalin Shalin Shekhar Mangar
            lboutros Ludovic Boutros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: