Package org.ametys.cms.search.solr
Record Class SearcherFactory.FacetDefinition
java.lang.Object
java.lang.Record
org.ametys.cms.search.solr.SearcherFactory.FacetDefinition
- Record Components:
id
- the facet identifiersolrFacetFieldName
- the name of the solr facet fieldjoinedPaths
- the joined paths
- Enclosing class:
SearcherFactory
public static record SearcherFactory.FacetDefinition(String id, String solrFacetFieldName, List<String> joinedPaths)
extends Record
Record representing a facet definition.
-
Constructor Summary
ConstructorsConstructorDescriptionFacetDefinition
(String id, String solrFacetFieldName) Creates aSearcherFactory.FacetDefinition
recordFacetDefinition
(String id, String solrFacetFieldName, List<String> joinedPaths) Creates an instance of aFacetDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of thejoinedPaths
record component.Returns the value of thesolrFacetFieldName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FacetDefinition
Creates aSearcherFactory.FacetDefinition
record- Parameters:
id
- the facet identifiersolrFacetFieldName
- the name of the solr facet field
-
FacetDefinition
Creates an instance of aFacetDefinition
record class.- Parameters:
id
- the value for theid
record componentsolrFacetFieldName
- the value for thesolrFacetFieldName
record componentjoinedPaths
- the value for thejoinedPaths
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
solrFacetFieldName
Returns the value of thesolrFacetFieldName
record component.- Returns:
- the value of the
solrFacetFieldName
record component
-
joinedPaths
Returns the value of thejoinedPaths
record component.- Returns:
- the value of the
joinedPaths
record component
-