Searched refs:model (Results 1 - 16 of 16) sorted by relevance

/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/
H A DTestFiltering.java155 String makeRandomQuery(Model model, boolean mainQuery, boolean facetQuery) { argument
162 OpenBitSet[] sets = facetQuery ? new OpenBitSet[]{model.facetQuery} :
163 (exclude ? new OpenBitSet[]{model.answer, model.facetQuery} : new OpenBitSet[]{model.answer, model.multiSelect, model.facetQuery});
175 int ll = random.nextInt(model.indexSize);
176 int uu = ll + ((ll==model.indexSize-1) ? 0 : random.nextInt(model
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A DStoreClassNameRule.java22 import org.junit.runners.model.Statement;
H A DUncaughtExceptionsRule.java29 import org.junit.runners.model.MultipleFailureException;
30 import org.junit.runners.model.Statement;
H A DSystemPropertiesInvariantRule.java31 import org.junit.runners.model.MultipleFailureException;
32 import org.junit.runners.model.Statement;
H A DSystemPropertiesRestoreRule.java24 import org.junit.runners.model.Statement;
H A DLuceneTestCaseRunner.java38 import org.junit.runners.model.FrameworkMethod;
39 import org.junit.runners.model.InitializationError;
H A DLuceneTestCase.java87 import org.junit.runners.model.MultipleFailureException;
88 import org.junit.runners.model.Statement;
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestStressNRT.java44 final ConcurrentHashMap<Integer,Long> model = new ConcurrentHashMap<Integer,Long>(); field in class:TestStressNRT
60 model.put(i, -1L);
63 committedModel.putAll(model);
129 newCommittedModel = new HashMap<Integer,Long>(model); // take a snapshot
190 System.out.println("TEST: " + Thread.currentThread().getName() + ": install new model version=" + version);
196 System.out.println("TEST: " + Thread.currentThread().getName() + ": skip install new model version=" + version);
224 Long val = model.get(id);
242 model.put(id, -nextVal);
258 model.put(id, -nextVal);
272 model
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestStressNRT.java44 final ConcurrentHashMap<Integer,Long> model = new ConcurrentHashMap<Integer,Long>(); field in class:TestStressNRT
60 model.put(i, -1L);
63 committedModel.putAll(model);
129 newCommittedModel = new HashMap<Integer,Long>(model); // take a snapshot
190 System.out.println("TEST: " + Thread.currentThread().getName() + ": install new model version=" + version);
196 System.out.println("TEST: " + Thread.currentThread().getName() + ": skip install new model version=" + version);
224 Long val = model.get(id);
242 model.put(id, -nextVal);
258 model.put(id, -nextVal);
272 model
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/junitcompat/
H A DTestJUnitRuleOrder.java33 import org.junit.runners.model.Statement;
H A DWithNestedTests.java31 import org.junit.runners.model.Statement;
H A DTestReproduceMessage.java34 import org.junit.runners.model.Statement;
/lucene-3.6.0/solr/core/src/test/org/apache/solr/
H A DTestGroupingSearch.java587 Map<Comparable, Doc> model = indexDocs(types, null, indexSize);
592 model.clear();
598 model.put(d1.id, d1);
605 model.put(d1.id, d1);
612 model.put(d1.id, d1);
619 model.put(d1.id, d1);
626 model.put(d1.id, d1);
633 int rows = random.nextInt(10)==0 ? random.nextInt(model.size()+2) : random.nextInt(11)-1;
634 int start = random.nextInt(5)==0 ? random.nextInt(model.size()+2) : random.nextInt(5); // pick a small start normally for better coverage
635 int group_limit = random.nextInt(10)==0 ? random.nextInt(model
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A DLuceneTestCaseRunner.java38 import org.junit.runners.model.FrameworkMethod;
39 import org.junit.runners.model.InitializationError;
H A DLuceneTestCase.java61 import org.junit.runners.model.FrameworkMethod;
62 import org.junit.runners.model.Statement;
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/
H A DSolrTestCaseJ4.java884 public Map<Comparable,Doc> indexDocs(List<FldType> descriptor, Map<Comparable,Doc> model, int nDocs) throws Exception { argument
885 if (model == null) {
886 model = new LinkedHashMap<Comparable,Doc>();
896 model.put(doc.id, doc);
906 model.put(doc.id, doc);
919 String responseStr = h.query(req("q","*:*", "fl","id", "sort","_docid_ asc", "rows",Integer.toString(model.size()*2), "wt","json", "indent","true"));
928 Doc modelDoc = model.get(id);
933 // make sure we updated the order of all docs in the model
934 assertEquals(order, model.size());
936 return model;
1091 invertField(Map<Comparable, Doc> model, String field) argument
[all...]

Completed in 40 milliseconds