/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestTermdocPerf.java | 78 void addDocs(final Random random, Directory dir, final int ndocs, String field, final String val, final int maxTF, final float percentDocs) throws IOException { argument 94 for (int i=0; i<ndocs; i++) { 103 public int doTest(int iter, int ndocs, int maxTF, float percentDocs) throws IOException { argument 107 addDocs(random, dir, ndocs, "foo", "val", maxTF, percentDocs); 109 if (VERBOSE) System.out.println("milliseconds for creation of " + ndocs + " docs = " + (end-start));
|
H A D | TestStressNRT.java | 52 private void initModel(int ndocs) { argument 57 syncArr = new Object[ndocs]; 59 for (int i=0; i<ndocs; i++) { 72 final int ndocs = atLeast(50); 83 initModel(ndocs); 91 System.out.println("TEST: ndocs=" + ndocs); 211 int id = rand.nextInt(ndocs); 301 int id = rand.nextInt(100) < 25 ? lastId : rand.nextInt(ndocs);
|
H A D | TestNorms.java | 187 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) throws IOException { argument 194 for (int i = 0; i < ndocs; i++) {
|
H A D | TestIndexReaderCloneNorms.java | 283 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) argument 292 for (int i = 0; i < ndocs; i++) {
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestTermdocPerf.java | 76 void addDocs(final Random random, Directory dir, final int ndocs, String field, final String val, final int maxTF, final float percentDocs) throws IOException { argument 93 for (int i=0; i<ndocs; i++) { 102 public int doTest(int iter, int ndocs, int maxTF, float percentDocs) throws IOException { argument 106 addDocs(random, dir, ndocs, "foo", "val", maxTF, percentDocs); 108 if (VERBOSE) System.out.println("milliseconds for creation of " + ndocs + " docs = " + (end-start));
|
H A D | TestStressNRT.java | 52 private void initModel(int ndocs) { argument 57 syncArr = new Object[ndocs]; 59 for (int i=0; i<ndocs; i++) { 72 final int ndocs = atLeast(50); 83 initModel(ndocs); 91 System.out.println("TEST: ndocs=" + ndocs); 211 int id = rand.nextInt(ndocs); 301 int id = rand.nextInt(100) < 25 ? lastId : rand.nextInt(ndocs);
|
H A D | TestNorms.java | 187 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) throws IOException { argument 194 for (int i = 0; i < ndocs; i++) {
|
H A D | TestIndexReaderCloneNorms.java | 283 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) argument 292 for (int i = 0; i < ndocs; i++) {
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/ |
H A D | TestSort.java | 157 int ndocs = random.nextInt(100)+1; 158 int maxval = random.nextInt(ndocs)+random.nextInt(ndocs)+1; 168 for (int i=0; i< ndocs; i++) { 218 int top = r.nextInt((ndocs>>3)+1)+1;
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestSort.java | 1268 int ndocs = full.maxDoc(); 1269 TopFieldCollector collectorMin = TopFieldCollector.create(sortMin, ndocs, false, false, false, true); 1270 TopFieldCollector collectorMax = TopFieldCollector.create(sortMax, ndocs, false, false, false, true); 1271 TopFieldCollector collectorMinRev = TopFieldCollector.create(sortMinRev, ndocs, false, false, false, true); 1272 TopFieldCollector collectorMaxRev = TopFieldCollector.create(sortMaxRev, ndocs, false, false, false, true); 1275 assertIntResultsOrder(collectorMin, ndocs, false, Integer.MIN_VALUE); 1276 assertIntResultsOrder(collectorMax, ndocs, false, Integer.MAX_VALUE); 1277 assertIntResultsOrder(collectorMinRev, ndocs, true, Integer.MIN_VALUE); 1278 assertIntResultsOrder(collectorMaxRev, ndocs, true, Integer.MAX_VALUE); 1281 private void assertIntResultsOrder(TopFieldCollector collector, int ndocs, boolea [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestSort.java | 1263 int ndocs = full.maxDoc(); 1264 TopFieldCollector collectorMin = TopFieldCollector.create(sortMin, ndocs, false, false, false, true); 1265 TopFieldCollector collectorMax = TopFieldCollector.create(sortMax, ndocs, false, false, false, true); 1266 TopFieldCollector collectorMinRev = TopFieldCollector.create(sortMinRev, ndocs, false, false, false, true); 1267 TopFieldCollector collectorMaxRev = TopFieldCollector.create(sortMaxRev, ndocs, false, false, false, true); 1270 assertIntResultsOrder(collectorMin, ndocs, false, Integer.MIN_VALUE); 1271 assertIntResultsOrder(collectorMax, ndocs, false, Integer.MAX_VALUE); 1272 assertIntResultsOrder(collectorMinRev, ndocs, true, Integer.MIN_VALUE); 1273 assertIntResultsOrder(collectorMaxRev, ndocs, true, Integer.MAX_VALUE); 1276 private void assertIntResultsOrder(TopFieldCollector collector, int ndocs, boolea [all...] |