/** * Should a flush be performed after the optimize. Defaults to true. */ public Builder flush(boolean flush) { return setParameter("flush", flush); }
/** * Should the optimize process only expunge segments with deletes in it. In Lucene, * a document is not deleted from a segment, just marked as deleted. During a merge * process of segments, a new segment is created that does not have those deletes. * This flag allow to only merge segments that have deletes. Defaults to false. */ public Builder onlyExpungeDeletes(boolean onlyExpungeDeletes) { return setParameter("only_expunge_deletes", onlyExpungeDeletes); }
/** * Should the optimize process only expunge segments with deletes in it. In Lucene, * a document is not deleted from a segment, just marked as deleted. During a merge * process of segments, a new segment is created that does not have those deletes. * This flag allow to only merge segments that have deletes. Defaults to false. */ public Builder onlyExpungeDeletes(boolean onlyExpungeDeletes) { return setParameter("only_expunge_deletes", onlyExpungeDeletes); }
/** * Should a flush be performed after the optimize. Defaults to true. */ public Builder flush(boolean flush) { return setParameter("flush", flush); }
/** * The number of segments to optimize to. To fully optimize the index, set it to 1. * Defaults to simply checking if a merge needs to execute, and if so, executes it. */ public Builder maxNumSegments(Number maxNumSegments) { return setParameter("max_num_segments", maxNumSegments); }
/** * The number of segments to optimize to. To fully optimize the index, set it to 1. * Defaults to simply checking if a merge needs to execute, and if so, executes it. */ public Builder maxNumSegments(Number maxNumSegments) { return setParameter("max_num_segments", maxNumSegments); }
/** * Should the optimize process only expunge segments with deletes in it. In Lucene, * a document is not deleted from a segment, just marked as deleted. During a merge * process of segments, a new segment is created that does not have those deletes. * This flag allow to only merge segments that have deletes. Defaults to false. */ public Builder onlyExpungeDeletes(boolean onlyExpungeDeletes) { return setParameter("only_expunge_deletes", onlyExpungeDeletes); }
/** * Should a flush be performed after the optimize. Defaults to true. */ public Builder flush(boolean flush) { return setParameter("flush", flush); }
/** * The number of segments to optimize to. To fully optimize the index, set it to 1. * Defaults to simply checking if a merge needs to execute, and if so, executes it. */ public Builder maxNumSegments(Number maxNumSegments) { return setParameter("max_num_segments", maxNumSegments); }