Searched refs:mergeFactor (Results 1 - 13 of 13) sorted by relevance

/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/
H A DSolrIndexConfig.java48 public final int mergeFactor; field in class:SolrIndexConfig
69 mergeFactor = -1;
116 mergeFactor=solrConfig.getInt(prefix+"/mergeFactor",def.mergeFactor);
189 if (mergeFactor != -1)
190 logMergePolicy.setMergeFactor(mergeFactor);
196 if (mergeFactor != -1) {
197 tieredMergePolicy.setMaxMergeAtOnce(mergeFactor);
198 tieredMergePolicy.setSegmentsPerTier(mergeFactor);
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DLogMergePolicy.java65 protected int mergeFactor = DEFAULT_MERGE_FACTOR; field in class:LogMergePolicy
115 return mergeFactor;
127 public void setMergeFactor(int mergeFactor) { argument
128 if (mergeFactor < 2)
129 throw new IllegalArgumentException("mergeFactor cannot be less than 2");
130 this.mergeFactor = mergeFactor;
265 } else if (last - start == mergeFactor) {
266 // mergeFactor eligible segments were found, add them as a merge.
292 // mergeFactor) t
[all...]
H A DIndexWriter.java1613 public void setMergeFactor(int mergeFactor) { argument
1614 getLogMergePolicy().setMergeFactor(mergeFactor);
4077 details.put("mergeFactor", Integer.toString(merge.segments.size()));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestIndexWriterMergePolicy.java99 // Test the case where mergeFactor changes
131 // Test the case where both mergeFactor and maxBufferedDocs change
230 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
248 if (upperBound * mergeFactor <= maxMergeDocs) {
249 assertTrue("maxMergeDocs=" + maxMergeDocs + "; numSegments=" + numSegments + "; upperBound=" + upperBound + "; mergeFactor=" + mergeFactor + "; segs=" + writer.segString() + " config=" + writer.getConfig(), numSegments < mergeFactor);
254 upperBound *= mergeFactor;
259 if (upperBound * mergeFactor <= maxMergeDocs) {
260 assertTrue(numSegments < mergeFactor);
[all...]
H A DTestStressIndexing2.java46 static int mergeFactor=3; field in class:TestStressIndexing2
81 // mergeFactor=2; maxBufferedDocs=2; Map docs = indexRandom(1, 3, 2, dir1);
104 mergeFactor=random.nextInt(3)+2;
116 System.out.println(" nThreads=" + nThreads + " iter=" + iter + " range=" + range + " doPooling=" + doReaderPooling + " maxThreadStates=" + maxThreadStates + " sameFieldOrder=" + sameFieldOrder + " mergeFactor=" + mergeFactor);
158 setMergeFactor(w.getConfig().getMergePolicy(), mergeFactor);
213 setMergeFactor(w.getConfig().getMergePolicy(), mergeFactor);
H A DTestIndexReader.java170 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
171 for (int i = 0; i < 5*mergeFactor; i++) {
180 for (int i = 0; i < 5*mergeFactor; i++) {
189 for (int i = 0; i < 5*mergeFactor; i++) {
274 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
275 for (int i = 0; i < 5 * mergeFactor; i++) {
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestIndexWriterMergePolicy.java99 // Test the case where mergeFactor changes
131 // Test the case where both mergeFactor and maxBufferedDocs change
230 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
248 if (upperBound * mergeFactor <= maxMergeDocs) {
249 assertTrue("maxMergeDocs=" + maxMergeDocs + "; numSegments=" + numSegments + "; upperBound=" + upperBound + "; mergeFactor=" + mergeFactor + "; segs=" + writer.segString() + " config=" + writer.getConfig(), numSegments < mergeFactor);
254 upperBound *= mergeFactor;
259 if (upperBound * mergeFactor <= maxMergeDocs) {
260 assertTrue(numSegments < mergeFactor);
[all...]
H A DTestStressIndexing2.java45 static int mergeFactor=3; field in class:TestStressIndexing2
80 // mergeFactor=2; maxBufferedDocs=2; Map docs = indexRandom(1, 3, 2, dir1);
103 mergeFactor=random.nextInt(3)+2;
115 System.out.println(" nThreads=" + nThreads + " iter=" + iter + " range=" + range + " doPooling=" + doReaderPooling + " maxThreadStates=" + maxThreadStates + " sameFieldOrder=" + sameFieldOrder + " mergeFactor=" + mergeFactor);
157 setMergeFactor(w.getConfig().getMergePolicy(), mergeFactor);
212 setMergeFactor(w.getConfig().getMergePolicy(), mergeFactor);
H A DTestIndexReader.java160 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
161 for (int i = 0; i < 5*mergeFactor; i++) {
170 for (int i = 0; i < 5*mergeFactor; i++) {
179 for (int i = 0; i < 5*mergeFactor; i++) {
203 int mergeFactor = ((LogMergePolicy) writer.getConfig().getMergePolicy()).getMergeFactor();
204 for (int i = 0; i < 5 * mergeFactor; i++) {
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/index/
H A DBalancedSegmentMergePolicy.java88 throw new IllegalArgumentException("maxSmallSegments cannot be less than mergeFactor");
99 public void setMergeFactor(int mergeFactor) { argument
100 super.setMergeFactor(mergeFactor);
401 public void setMergeFactor(int mergeFactor) { argument
402 _mergeFactor = mergeFactor;
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A DLuceneTestCase.java460 public static void setMergeFactor(MergePolicy mp, int mergeFactor) { argument
462 ((LogMergePolicy) mp).setMergeFactor(mergeFactor);
464 ((TieredMergePolicy) mp).setMaxMergeAtOnce(mergeFactor);
465 ((TieredMergePolicy) mp).setMaxMergeAtOnceExplicit(mergeFactor);
868 public static LogMergePolicy newLogMergePolicy(boolean useCFS, int mergeFactor) { argument
871 logmp.setMergeFactor(mergeFactor);
875 public static LogMergePolicy newLogMergePolicy(int mergeFactor) { argument
877 logmp.setMergeFactor(mergeFactor);
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A DLuceneTestCase.java595 public static void setMergeFactor(MergePolicy mp, int mergeFactor) { argument
597 ((LogMergePolicy) mp).setMergeFactor(mergeFactor);
599 ((TieredMergePolicy) mp).setMaxMergeAtOnce(mergeFactor);
600 ((TieredMergePolicy) mp).setMaxMergeAtOnceExplicit(mergeFactor);
1043 public static LogMergePolicy newLogMergePolicy(boolean useCFS, int mergeFactor) { argument
1046 logmp.setMergeFactor(mergeFactor);
1050 public static LogMergePolicy newLogMergePolicy(int mergeFactor) { argument
1052 logmp.setMergeFactor(mergeFactor);
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndexWriter.java104 private int mergeFactor = 2500; field in class:InstantiatedIndexWriter
125 public void setMergeFactor(int mergeFactor) { argument
126 this.mergeFactor = mergeFactor;
133 return mergeFactor;

Completed in 69 milliseconds