Package org.codelibs.fess.util
Class FacetResponse.Field
java.lang.Object
org.codelibs.fess.util.FacetResponse.Field
- Enclosing class:
FacetResponse
Represents a field facet with its name and value counts.
Each field facet contains multiple values with their respective document counts.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionField(org.opensearch.search.aggregations.bucket.terms.Terms termFacet) Constructs a Field from OpenSearch Terms aggregation. -
Method Summary
-
Field Details
-
valueCountMap
Map containing field values and their document counts. Keys are field values as strings, values are document counts. -
name
The decoded name of the field.
-
-
Constructor Details
-
Field
public Field(org.opensearch.search.aggregations.bucket.terms.Terms termFacet) Constructs a Field from OpenSearch Terms aggregation. Decodes the field name and processes all term buckets to extract field values and their document counts.- Parameters:
termFacet- the OpenSearch Terms aggregation containing field facet data
-
-
Method Details
-
getValueCountMap
Gets the map of field values and their document counts.- Returns:
- the valueCountMap containing field values and counts
-
getName
Gets the decoded name of this field facet.- Returns:
- the field name
-