Class ForceMergeRequest

    • Constructor Detail

      • ForceMergeRequest

        public ForceMergeRequest​(java.lang.String... indices)
        Constructs a merge request over one or more indices.
        Parameters:
        indices - The indices to merge, no indices passed means all indices will be merged.
      • ForceMergeRequest

        public ForceMergeRequest()
    • Method Detail

      • maxNumSegments

        public int maxNumSegments()
        Will merge the index down to <= maxNumSegments. By default, will cause the merge process to merge down to half the configured number of segments.
      • maxNumSegments

        public ForceMergeRequest maxNumSegments​(int maxNumSegments)
        Will merge the index down to <= maxNumSegments. By default, will cause the merge process to merge down to half the configured number of segments.
      • onlyExpungeDeletes

        public boolean onlyExpungeDeletes()
        Should the merge only expunge deletes from the index, without full merging. Defaults to full merging (false).
      • onlyExpungeDeletes

        public ForceMergeRequest onlyExpungeDeletes​(boolean onlyExpungeDeletes)
        Should the merge only expunge deletes from the index, without full merge. Defaults to full merging (false).
      • flush

        public boolean flush()
        Should flush be performed after the merge. Defaults to true.
      • flush

        public ForceMergeRequest flush​(boolean flush)
        Should flush be performed after the merge. Defaults to true.
      • toString

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