Searched refs:ndocs (Results 1 - 11 of 11) sorted by relevance

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestTermdocPerf.java78 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 DTestStressNRT.java52 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 DTestNorms.java187 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) throws IOException { argument
194 for (int i = 0; i < ndocs; i++) {
H A DTestIndexReaderCloneNorms.java283 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 DTestTermdocPerf.java76 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 DTestStressNRT.java52 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 DTestNorms.java187 private void addDocs(Random random, Directory dir, int ndocs, boolean compound) throws IOException { argument
194 for (int i = 0; i < ndocs; i++) {
H A DTestIndexReaderCloneNorms.java283 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 DTestSort.java157 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 DTestSort.java1268 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 DTestSort.java1263 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...]

Completed in 63 milliseconds