mirror of https://github.com/apache/lucene.git
fix typo: Samping -> Sampling
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1419123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a8408ceea
commit
e8ec44a923
|
@ -125,7 +125,7 @@ public class SamplingParams {
|
|||
* Set a sampling-threshold
|
||||
* @see #getSamplingThreshold()
|
||||
*/
|
||||
public void setSampingThreshold(int samplingThreshold) {
|
||||
public void setSamplingThreshold(int samplingThreshold) {
|
||||
this.samplingThreshold = samplingThreshold;
|
||||
}
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ public abstract class BaseSampleTestTopK extends BaseTestTopK {
|
|||
samplingParams.setMaxSampleSize((int) (10000 * retryFactor));
|
||||
samplingParams.setOversampleFactor(5.0 * retryFactor);
|
||||
|
||||
samplingParams.setSampingThreshold(11000); //force sampling
|
||||
samplingParams.setSamplingThreshold(11000); //force sampling
|
||||
Sampler sampler = useRandomSampler ?
|
||||
new RandomSampler(samplingParams, new Random(random().nextLong())) :
|
||||
new RepeatableSampler(samplingParams);
|
||||
|
|
|
@ -77,7 +77,7 @@ public class OversampleWithDepthTest extends LuceneTestCase {
|
|||
params.setMinSampleSize(2);
|
||||
params.setMaxSampleSize(50);
|
||||
params.setOversampleFactor(5);
|
||||
params.setSampingThreshold(60);
|
||||
params.setSamplingThreshold(60);
|
||||
params.setSampleRatio(0.1);
|
||||
|
||||
FacetResult res = searchWithFacets(r, tr, fsp, params);
|
||||
|
|
Loading…
Reference in New Issue