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.FacetDefinitionrecordFacetDefinition(String id, String solrFacetFieldName, List<String> joinedPaths) Creates an instance of aFacetDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thejoinedPathsrecord component.Returns the value of thesolrFacetFieldNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FacetDefinition
Creates aSearcherFactory.FacetDefinitionrecord- Parameters:
id- the facet identifiersolrFacetFieldName- the name of the solr facet field
-
FacetDefinition
Creates an instance of aFacetDefinitionrecord class.- Parameters:
id- the value for theidrecord componentsolrFacetFieldName- the value for thesolrFacetFieldNamerecord componentjoinedPaths- the value for thejoinedPathsrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
solrFacetFieldName
Returns the value of thesolrFacetFieldNamerecord component.- Returns:
- the value of the
solrFacetFieldNamerecord component
-
joinedPaths
Returns the value of thejoinedPathsrecord component.- Returns:
- the value of the
joinedPathsrecord component
-