public static final class FacetOptions.Builder
extends java.lang.Object
FacetOptions
.Modifier and Type | Method and Description |
---|---|
FacetOptions |
build()
Returns an immutable
FacetOptions that reflects the current state of this Builder. |
FacetOptions.Builder |
setDepth(int value)
Sets the number of documents from the search result to be analyzed for facet discovery.
|
FacetOptions.Builder |
setDiscoveryLimit(int value)
Sets the number of facets to be discovered.
|
FacetOptions.Builder |
setDiscoveryValueLimit(int value)
Sets the maximum number of values each discovered facet should have.
|
public FacetOptions.Builder setDiscoveryValueLimit(int value)
java.lang.IllegalArgumentException
- if value is negative or zero or greater than
SearchApiLimits.FACET_MAXIMUM_VALUE_LIMIT
public FacetOptions.Builder setDiscoveryLimit(int value)
java.lang.IllegalArgumentException
- if the value is zero or negative or is larger
than SearchApiLimits.FACET_MAXIMUM_DISCOVERY_LIMIT
public FacetOptions.Builder setDepth(int value)
java.lang.IllegalArgumentException
- if the value is zero or negative or is larger
than SearchApiLimits.FACET_MAXIMUM_DEPTH
.public FacetOptions build()
FacetOptions
that reflects the current state of this Builder.