Searched refs:TIME_ALLOWED (Results 1 - 7 of 7) sorted by relevance

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestTimeLimitingCollector.java43 private static final long TIME_ALLOWED = 17 * SLOW_DOWN; // so searches can find about 17 docs. field in class:TestTimeLimitingCollector
174 Collector tlCollector = createTimedCollector(myHc, TIME_ALLOWED, greedy);
201 assertEquals( timoutException.getTimeAllowed(), TIME_ALLOWED);
203 assertTrue ( "elapsed="+timoutException.getTimeElapsed()+" <= (allowed-resolution)="+(TIME_ALLOWED-counterThread.getResolution()),
204 timoutException.getTimeElapsed() > TIME_ALLOWED-counterThread.getResolution());
219 long res = 2 * counterThread.getResolution() + TIME_ALLOWED + SLOW_DOWN; // some slack for less noise in this test
229 "2*resolution + TIME_ALLOWED + SLOW_DOWN = " +
230 "2*" + counterThread.getResolution() + " + " + TIME_ALLOWED + " + " + SLOW_DOWN +
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestTimeLimitingCollector.java43 private static final long TIME_ALLOWED = 17 * SLOW_DOWN; // so searches can find about 17 docs. field in class:TestTimeLimitingCollector
174 Collector tlCollector = createTimedCollector(myHc, TIME_ALLOWED, greedy);
201 assertEquals( timoutException.getTimeAllowed(), TIME_ALLOWED);
203 assertTrue ( "elapsed="+timoutException.getTimeElapsed()+" <= (allowed-resolution)="+(TIME_ALLOWED-counterThread.getResolution()),
204 timoutException.getTimeElapsed() > TIME_ALLOWED-counterThread.getResolution());
219 long res = 2 * counterThread.getResolution() + TIME_ALLOWED + SLOW_DOWN; // some slack for less noise in this test
229 "2*resolution + TIME_ALLOWED + SLOW_DOWN = " +
230 "2*" + counterThread.getResolution() + " + " + TIME_ALLOWED + " + " + SLOW_DOWN +
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/
H A DCommonParams.java93 public static final String TIME_ALLOWED = "timeAllowed"; field in interface:CommonParams
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/grouping/distributed/requestfactory/
H A DTopGroupsShardRequestFactory.java134 int origTimeAllowed = sreq.params.getInt(CommonParams.TIME_ALLOWED, -1);
136 sreq.params.set(CommonParams.TIME_ALLOWED, Math.max(1,origTimeAllowed - rb.firstPhaseElapsedTime));
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/
H A DSolrQuery.java756 this.remove(CommonParams.TIME_ALLOWED);
758 this.set(CommonParams.TIME_ALLOWED, milliseconds);
767 return this.getInt(CommonParams.TIME_ALLOWED);
/lucene-3.6.0/solr/core/src/test/org/apache/solr/
H A DTestDistributedGrouping.java201 simpleQuery("q", "*:*", "rows", 100, "fl", "id," + s1, "group", "true", "group.query", t1 + ":kings OR " + t1 + ":eggs", "group.limit", 10, "sort", s1 + " asc, id asc", CommonParams.TIME_ALLOWED, 1);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/
H A DQueryComponent.java218 long timeAllowed = (long)params.getInt( CommonParams.TIME_ALLOWED, -1 );

Completed in 30 milliseconds