Class LuceneFacetSamplingQueryOptions
Options for Lucene Facet Sampling
public class LuceneFacetSamplingQueryOptions
- Inheritance
-
LuceneFacetSamplingQueryOptions
- Inherited Members
Constructors
LuceneFacetSamplingQueryOptions(int)
Constructor
public LuceneFacetSamplingQueryOptions(int sampleSize)
Parameters
sampleSize
intThe 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
LuceneFacetSamplingQueryOptions(int, long)
Constructor
public LuceneFacetSamplingQueryOptions(int sampleSize, long seed)
Parameters
sampleSize
intThe 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
seed
longThe random seed. If 0 then a seed will be chosen for you.
Properties
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
public int SampleSize { get; }
Property Value
Seed
The random seed. If 0 then a seed will be chosen for you.
public long Seed { get; }