Class UpgradeRequest

    • Constructor Detail

      • UpgradeRequest

        public UpgradeRequest​(java.lang.String... indices)
        Constructs an optimization request over one or more indices.
        Parameters:
        indices - The indices to upgrade, no indices passed means all indices will be optimized.
      • UpgradeRequest

        public UpgradeRequest​(StreamInput in)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • upgradeOnlyAncientSegments

        public boolean upgradeOnlyAncientSegments()
        Should the upgrade only the ancient (older major version of Lucene) segments? Defaults to false.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object