Table of Contents

Class LuceneFacetSamplingQueryOptions

Namespace
Examine.Lucene.Search
Assembly
Examine.Lucene.dll

Options for Lucene Facet Sampling

public class LuceneFacetSamplingQueryOptions
Inheritance
LuceneFacetSamplingQueryOptions
Inherited Members

Constructors

LuceneFacetSamplingQueryOptions(int)

Constructor

public LuceneFacetSamplingQueryOptions(int sampleSize)

Parameters

sampleSize int

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

LuceneFacetSamplingQueryOptions(int, long)

Constructor

public LuceneFacetSamplingQueryOptions(int sampleSize, long seed)

Parameters

sampleSize int

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

seed long

The 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

int

Seed

The random seed. If 0 then a seed will be chosen for you.

public long Seed { get; }

Property Value

long