Package de.cxp.ocs.model.result
Class Facet
- java.lang.Object
-
- de.cxp.ocs.model.result.Facet
-
public class Facet extends Object
-
-
Field Summary
Fields Modifier and Type Field Description longabsoluteFacetCoverageThis is the amount of matched documents that are covered by that facet.List<FacetEntry>entriesThe entries of that facet.@NonNull StringfieldNamethis is the name of the according data field.booleanisFilteredIs set to true if there an active filter from that facet.Map<String,Object>metaOptional meta data for that facet, e.g.Stringtype
-
Constructor Summary
Constructors Constructor Description Facet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetaddEntry(FacetEntry entry)Add facet entry to facet.FacetaddEntry(String key, long docCount, String link)Add simpleFacetEntryto the facet.
-
-
-
Field Detail
-
fieldName
@NonNull public @NonNull String fieldName
this is the name of the according data field. If a different label should be used, put that into meta data.
-
absoluteFacetCoverage
public long absoluteFacetCoverage
This is the amount of matched documents that are covered by that facet.
-
isFiltered
public boolean isFiltered
Is set to true if there an active filter from that facet.
-
entries
public List<FacetEntry> entries
The entries of that facet.
-
type
public String type
-
-
Method Detail
-
addEntry
public Facet addEntry(String key, long docCount, String link)
Add simpleFacetEntryto the facet. Only meaningful for TextFacets.- Parameters:
key- key of the facet entry to adddocCount- related document count of the facet entry to addlink- related link of the facet entry to add- Returns:
- the changed facet
-
addEntry
public Facet addEntry(FacetEntry entry)
Add facet entry to facet.- Parameters:
entry- the facet entry to add- Returns:
- the changed facet
-
-