Constructor RandomSamplingFacetsCollector
RandomSamplingFacetsCollector(Int32, String)
Constructor with the given sample size and default seed.
Declaration
public RandomSamplingFacetsCollector(int sampleSize, string cacheName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sampleSize | |
System.String | cacheName |
RandomSamplingFacetsCollector(Int32, Int64, String)
Constructor with the given sample size and seed.
Declaration
public RandomSamplingFacetsCollector(int sampleSize, long seed, string cacheName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | sampleSize | The preferred sample size. If the number of hits is greater than the size, sampling will be done using a sample ratio of sampling size / totalN. For example: 1000 hits, sample size = 10 results in samplingRatio of 0.01. If the number of hits is lower, no sampling is done at all |
System.Int64 | seed | The random seed. If |
System.String | cacheName |