Class FacetOptions.Builder (2.0.0)

public static final class FacetOptions.Builder

Builder for FacetOptions.

Inheritance

java.lang.Object > FacetOptions.Builder

Methods

build()

public FacetOptions build()

Returns an immutable FacetOptions that reflects the current state of this Builder.

Returns
TypeDescription
FacetOptions

setDepth(int value)

public FacetOptions.Builder setDepth(int value)

Sets the number of documents from the search result to be analyzed for facet discovery.

Parameter
NameDescription
valueint
Returns
TypeDescription
FacetOptions.Builder

this Builder

setDiscoveryLimit(int value)

public FacetOptions.Builder setDiscoveryLimit(int value)

Sets the number of facets to be discovered.

Parameter
NameDescription
valueint
Returns
TypeDescription
FacetOptions.Builder

this Builder

setDiscoveryValueLimit(int value)

public FacetOptions.Builder setDiscoveryValueLimit(int value)

Sets the maximum number of values each discovered facet should have.

Parameter
NameDescription
valueint
Returns
TypeDescription
FacetOptions.Builder

this Builder