Package de.cxp.ocs.model.result
Class Facet
java.lang.Object
de.cxp.ocs.model.result.Facet
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
This is the amount of matched documents that are covered by that facet.The entries of that facet.@NonNull String
this is the name of the according data field.boolean
Is set to true if there an active filter from that facet.Optional meta data for that facet, e.g. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntry
(FacetEntry entry) Add facet entry to facet.Add simpleFacetEntry
to the facet.
-
Field Details
-
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 absoluteFacetCoverageThis is the amount of matched documents that are covered by that facet. -
isFiltered
public boolean isFilteredIs set to true if there an active filter from that facet. -
entries
The entries of that facet. -
type
-
meta
Optional meta data for that facet, e.g. display hints like a label or a facet-type.
-
-
Constructor Details
-
Facet
public Facet()
-
-
Method Details
-
addEntry
Add simpleFacetEntry
to 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
Add facet entry to facet.- Parameters:
entry
- the facet entry to add- Returns:
- the changed facet
-